Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -233,5 +233,8 @@ with gr.Blocks(title="Studio Crit Sync Status") as demo:
|
|
| 233 |
return f"🟢 Online | {revs} reviews tracked", "✅ Valid" if has_t else "⚠️ Set HF_TOKEN in Space Settings"
|
| 234 |
|
| 235 |
refresh_btn.click(fn=refresh_ui, outputs=[status_box, token_status])
|
| 236 |
-
|
| 237 |
app = gr.mount_gradio_app(app, demo, path="/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
return f"🟢 Online | {revs} reviews tracked", "✅ Valid" if has_t else "⚠️ Set HF_TOKEN in Space Settings"
|
| 234 |
|
| 235 |
refresh_btn.click(fn=refresh_ui, outputs=[status_box, token_status])
|
|
|
|
| 236 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 237 |
+
|
| 238 |
+
if __name__ == "__main__":
|
| 239 |
+
import uvicorn
|
| 240 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|