Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,6 @@ clean_link = "comfit-copilot.mch250095.projects.jetstream-cloud.org:3000"
|
|
| 12 |
full_url = f"http://{clean_link}"
|
| 13 |
|
| 14 |
# Styled HTML for a flashing neon green block with black text
|
| 15 |
-
# FIX: Uncommented the animation line to enable flashing
|
| 16 |
GREEN_FLASHING_LINK = f"""
|
| 17 |
<style>
|
| 18 |
@keyframes flash {{
|
|
@@ -155,7 +154,8 @@ setInterval(function() {
|
|
| 155 |
</script>
|
| 156 |
"""
|
| 157 |
|
| 158 |
-
|
|
|
|
| 159 |
gr.HTML(combined_js)
|
| 160 |
session_tracker = gr.State(value="active", delete_callback=user_left)
|
| 161 |
|
|
@@ -214,4 +214,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 214 |
demo.load(fn=get_current_status, outputs=[live_status, user_display, link_box])
|
| 215 |
|
| 216 |
if __name__ == "__main__":
|
| 217 |
-
|
|
|
|
|
|
| 12 |
full_url = f"http://{clean_link}"
|
| 13 |
|
| 14 |
# Styled HTML for a flashing neon green block with black text
|
|
|
|
| 15 |
GREEN_FLASHING_LINK = f"""
|
| 16 |
<style>
|
| 17 |
@keyframes flash {{
|
|
|
|
| 154 |
</script>
|
| 155 |
"""
|
| 156 |
|
| 157 |
+
# FIX 1: Removed theme=gr.themes.Soft() from here
|
| 158 |
+
with gr.Blocks() as demo:
|
| 159 |
gr.HTML(combined_js)
|
| 160 |
session_tracker = gr.State(value="active", delete_callback=user_left)
|
| 161 |
|
|
|
|
| 214 |
demo.load(fn=get_current_status, outputs=[live_status, user_display, link_box])
|
| 215 |
|
| 216 |
if __name__ == "__main__":
|
| 217 |
+
# FIX 2: Added theme=gr.themes.Soft() here inside launch()
|
| 218 |
+
demo.launch(theme=gr.themes.Soft())
|