Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks() as demo:
|
|
145 |
run_btn = gr.Button("▶️ Run Command")
|
146 |
|
147 |
run_btn.click(fn=live_terminal, inputs=cmd_input, outputs=terminal_output)
|
148 |
-
demo.load(fn=
|
149 |
|
150 |
with gr.Tab("🤖 Telegram Bot"):
|
151 |
gr.Markdown("## 🤖 Telegram Bot Controls")
|
@@ -171,7 +171,7 @@ with gr.Blocks() as demo:
|
|
171 |
return update_bot_logs()
|
172 |
|
173 |
stop_btn.click(fn=handle_stop, outputs=bot_output)
|
174 |
-
demo.load(fn=
|
175 |
|
176 |
# --- Launch the App ---
|
177 |
demo.launch()
|
|
|
145 |
run_btn = gr.Button("▶️ Run Command")
|
146 |
|
147 |
run_btn.click(fn=live_terminal, inputs=cmd_input, outputs=terminal_output)
|
148 |
+
demo.load(fn=update_terminal_logs, outputs=terminal_output)
|
149 |
|
150 |
with gr.Tab("🤖 Telegram Bot"):
|
151 |
gr.Markdown("## 🤖 Telegram Bot Controls")
|
|
|
171 |
return update_bot_logs()
|
172 |
|
173 |
stop_btn.click(fn=handle_stop, outputs=bot_output)
|
174 |
+
demo.load(fn=update_bot_logs, outputs=bot_output)
|
175 |
|
176 |
# --- Launch the App ---
|
177 |
demo.launch()
|