Commit
•
c968311
1
Parent(s):
caa5038
Update app.py
Browse files
app.py
CHANGED
@@ -499,13 +499,13 @@ css = '''.gr-group{background-color: transparent;box-shadow: var(--block-shadow)
|
|
499 |
#training_cost h4{margin-top: 1.25em;margin-bottom: 0}
|
500 |
#training_cost small{font-weight: normal}
|
501 |
.accordion {color: var(--body-text-color)}
|
502 |
-
.main_unlogged{opacity: 0.5
|
503 |
'''
|
504 |
theme = gr.themes.Monochrome(
|
505 |
text_size=gr.themes.Size(lg="18px", md="15px", sm="13px", xl="22px", xs="12px", xxl="24px", xxs="9px"),
|
506 |
font=[gr.themes.GoogleFont('Source Sans Pro'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
507 |
)
|
508 |
-
def swap_opacity(token: gr.
|
509 |
if token is None:
|
510 |
return gr.update(elem_classes=["main_unlogged"])
|
511 |
else:
|
|
|
499 |
#training_cost h4{margin-top: 1.25em;margin-bottom: 0}
|
500 |
#training_cost small{font-weight: normal}
|
501 |
.accordion {color: var(--body-text-color)}
|
502 |
+
.main_unlogged{opacity: 0.5;pointer-events: none}
|
503 |
'''
|
504 |
theme = gr.themes.Monochrome(
|
505 |
text_size=gr.themes.Size(lg="18px", md="15px", sm="13px", xl="22px", xs="12px", xxl="24px", xxs="9px"),
|
506 |
font=[gr.themes.GoogleFont('Source Sans Pro'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
507 |
)
|
508 |
+
def swap_opacity(token: gr.OAuthProfile):
|
509 |
if token is None:
|
510 |
return gr.update(elem_classes=["main_unlogged"])
|
511 |
else:
|