Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,11 +66,15 @@ def gradio_interface(api_token):
|
|
66 |
report = get_report(api_token)
|
67 |
return report
|
68 |
|
|
|
|
|
|
|
|
|
69 |
# Create Gradio UI
|
70 |
-
with gr.Blocks() as demo:
|
71 |
gr.Markdown("# Hugging Face Storage Report")
|
72 |
|
73 |
-
gr.LoginButton
|
74 |
|
75 |
output = gr.Markdown()
|
76 |
|
|
|
66 |
report = get_report(api_token)
|
67 |
return report
|
68 |
|
69 |
+
css = """
|
70 |
+
.main_ui_logged_out{opacity: 0.3; pointer-events: none}
|
71 |
+
"""
|
72 |
+
|
73 |
# Create Gradio UI
|
74 |
+
with gr.Blocks(css=css) as demo:
|
75 |
gr.Markdown("# Hugging Face Storage Report")
|
76 |
|
77 |
+
gr.LoginButton()
|
78 |
|
79 |
output = gr.Markdown()
|
80 |
|