Spaces:
Sleeping
Sleeping
Naufal Arhab commited on
Commit ·
aaa6bb4
1
Parent(s): 99f8f03
fix(hf): restore gradio sdk with spaces package and demo.load for ZeroGPU compatibility
Browse files- README.md +3 -1
- app.py +1 -0
- requirements.txt +1 -0
README.md
CHANGED
|
@@ -3,7 +3,9 @@ title: Perps Institutional Quant Terminal
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
-
sdk:
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
|
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.1
|
| 8 |
+
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
app.py
CHANGED
|
@@ -60,6 +60,7 @@ with gr.Blocks(title="Perps Terminal Engine") as demo:
|
|
| 60 |
txt_out = gr.Textbox(label="Status")
|
| 61 |
btn = gr.Button("Check AI Engine Status")
|
| 62 |
btn.click(fn=gpu_check, inputs=txt_in, outputs=txt_out)
|
|
|
|
| 63 |
|
| 64 |
# Mount Gradio at /gradio so root '/' serves the React SPA
|
| 65 |
try:
|
|
|
|
| 60 |
txt_out = gr.Textbox(label="Status")
|
| 61 |
btn = gr.Button("Check AI Engine Status")
|
| 62 |
btn.click(fn=gpu_check, inputs=txt_in, outputs=txt_out)
|
| 63 |
+
demo.load(fn=gpu_check, inputs=txt_in, outputs=txt_out)
|
| 64 |
|
| 65 |
# Mount Gradio at /gradio so root '/' serves the React SPA
|
| 66 |
try:
|
requirements.txt
CHANGED
|
@@ -11,3 +11,4 @@ psycopg[binary]>=3.2
|
|
| 11 |
psycopg-pool>=3.2
|
| 12 |
huggingface_hub<0.25.0
|
| 13 |
gradio>=4.44.0,<5.0.0
|
|
|
|
|
|
| 11 |
psycopg-pool>=3.2
|
| 12 |
huggingface_hub<0.25.0
|
| 13 |
gradio>=4.44.0,<5.0.0
|
| 14 |
+
spaces
|