Spaces:
Runtime error
Runtime error
Commit ·
b8139c4
1
Parent(s): a9db262
Downgrade to Gradio 4.44.0 to fix compatibility issues
Browse files- README.md +1 -1
- requirements.txt +1 -1
- test_gradio.py +23 -0
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 📈
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Trading Dashboard Requirements - Full Featured
|
| 2 |
-
gradio==
|
| 3 |
plotly>=6.0.0
|
| 4 |
pandas>=2.0.0
|
| 5 |
numpy>=1.20.0
|
|
|
|
| 1 |
# Trading Dashboard Requirements - Full Featured
|
| 2 |
+
gradio==4.44.0
|
| 3 |
plotly>=6.0.0
|
| 4 |
pandas>=2.0.0
|
| 5 |
numpy>=1.20.0
|
test_gradio.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Minimal test to isolate Gradio issue
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
import gradio as gr
|
| 7 |
+
|
| 8 |
+
def create_minimal_dashboard():
|
| 9 |
+
"""Create minimal dashboard to test Gradio compatibility"""
|
| 10 |
+
|
| 11 |
+
with gr.Blocks(title="Test Dashboard") as demo:
|
| 12 |
+
gr.Markdown("# Test Dashboard")
|
| 13 |
+
|
| 14 |
+
with gr.Row():
|
| 15 |
+
test_box = gr.Textbox(label="Test", interactive=False)
|
| 16 |
+
|
| 17 |
+
demo.queue()
|
| 18 |
+
|
| 19 |
+
return demo
|
| 20 |
+
|
| 21 |
+
if __name__ == "__main__":
|
| 22 |
+
demo = create_minimal_dashboard()
|
| 23 |
+
demo.launch()
|