Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,9 @@ def start_training(dataset_url, model_url, epochs):
|
|
87 |
else:
|
88 |
return "⚠ ترینینگ در حال اجرا است!"
|
89 |
|
|
|
|
|
|
|
90 |
with gr.Blocks() as app:
|
91 |
gr.Markdown("# 🚀 AutoTrain DeepSeek R1 (CPU) - نمایش وضعیت لحظهای")
|
92 |
|
@@ -101,11 +104,9 @@ with gr.Blocks() as app:
|
|
101 |
|
102 |
# ✅ نمایش وضعیت لحظهای ترینینگ
|
103 |
status_box = gr.Textbox(label="مرحله فعلی ترینینگ", interactive=False)
|
104 |
-
|
105 |
-
def update_status():
|
106 |
-
return read_status()
|
107 |
|
108 |
-
|
109 |
|
110 |
app.queue()
|
111 |
app.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
|
|
87 |
else:
|
88 |
return "⚠ ترینینگ در حال اجرا است!"
|
89 |
|
90 |
+
def update_status():
|
91 |
+
return read_status()
|
92 |
+
|
93 |
with gr.Blocks() as app:
|
94 |
gr.Markdown("# 🚀 AutoTrain DeepSeek R1 (CPU) - نمایش وضعیت لحظهای")
|
95 |
|
|
|
104 |
|
105 |
# ✅ نمایش وضعیت لحظهای ترینینگ
|
106 |
status_box = gr.Textbox(label="مرحله فعلی ترینینگ", interactive=False)
|
107 |
+
refresh_button = gr.Button("🔄 بهروزرسانی وضعیت")
|
|
|
|
|
108 |
|
109 |
+
refresh_button.click(update_status, inputs=[], outputs=status_box)
|
110 |
|
111 |
app.queue()
|
112 |
app.launch(server_name="0.0.0.0", server_port=7860, share=True)
|