Fix: remove every param from demo.load
Browse files
app.py
CHANGED
|
@@ -51,12 +51,11 @@ with gr.Blocks(
|
|
| 51 |
Trained model will be pushed to [EeshaAI/zeeb](https://huggingface.co/EeshaAI/zeeb).
|
| 52 |
|
| 53 |
Training **starts automatically** when this Space boots.
|
|
|
|
| 54 |
"""
|
| 55 |
)
|
| 56 |
|
| 57 |
-
|
| 58 |
-
refresh_btn = gr.Button("🔄 Refresh Log", variant="primary")
|
| 59 |
-
auto_refresh = gr.Checkbox(label="Auto-refresh (every 10s)", value=True)
|
| 60 |
|
| 61 |
logbox = gr.Textbox(
|
| 62 |
label="Training Log",
|
|
@@ -69,9 +68,6 @@ with gr.Blocks(
|
|
| 69 |
|
| 70 |
refresh_btn.click(fn=refresh_log, outputs=logbox)
|
| 71 |
|
| 72 |
-
# Auto-refresh every 10 seconds
|
| 73 |
-
demo.load(fn=refresh_log, outputs=logbox, every=10)
|
| 74 |
-
|
| 75 |
|
| 76 |
if __name__ == "__main__":
|
| 77 |
demo.launch(server_name="0.0.0.0", server_port=7860, show_error=True)
|
|
|
|
| 51 |
Trained model will be pushed to [EeshaAI/zeeb](https://huggingface.co/EeshaAI/zeeb).
|
| 52 |
|
| 53 |
Training **starts automatically** when this Space boots.
|
| 54 |
+
Click **Refresh Log** to see progress.
|
| 55 |
"""
|
| 56 |
)
|
| 57 |
|
| 58 |
+
refresh_btn = gr.Button("🔄 Refresh Log", variant="primary")
|
|
|
|
|
|
|
| 59 |
|
| 60 |
logbox = gr.Textbox(
|
| 61 |
label="Training Log",
|
|
|
|
| 68 |
|
| 69 |
refresh_btn.click(fn=refresh_log, outputs=logbox)
|
| 70 |
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
if __name__ == "__main__":
|
| 73 |
demo.launch(server_name="0.0.0.0", server_port=7860, show_error=True)
|