Spaces:
Running
Running
GitHub Actions commited on
Commit Β·
5eb1339
1
Parent(s): 27fb911
π Automated sync from GitHub
Browse files- main.py +1 -1
- src/ux_agent.py +8 -4
main.py
CHANGED
|
@@ -92,7 +92,7 @@ def create_app():
|
|
| 92 |
print("β
System Assembled. Launching Interface...")
|
| 93 |
|
| 94 |
# Pass the warning beep path
|
| 95 |
-
agent3.
|
| 96 |
|
| 97 |
# 1. Generate the UI blocks
|
| 98 |
app = agent3.create_ui()
|
|
|
|
| 92 |
print("β
System Assembled. Launching Interface...")
|
| 93 |
|
| 94 |
# Pass the warning beep path
|
| 95 |
+
agent3.alert_sound = create_warning_beep()
|
| 96 |
|
| 97 |
# 1. Generate the UI blocks
|
| 98 |
app = agent3.create_ui()
|
src/ux_agent.py
CHANGED
|
@@ -907,7 +907,7 @@ Utterance: "{text}"""
|
|
| 907 |
gr.Markdown("## π PureVersation: Decentralized Dialect Mediator (Lab View)")
|
| 908 |
|
| 909 |
alert_player = gr.Audio(visible=False, autoplay=True)
|
| 910 |
-
status_timer = gr.Timer(value=
|
| 911 |
|
| 912 |
ui_source_tag = gr.Textbox(visible=False, value="Web")
|
| 913 |
ui_clar_source = gr.Textbox(visible=False, value="Lab Admin")
|
|
@@ -1123,9 +1123,13 @@ Utterance: "{text}"""
|
|
| 1123 |
# EVENT BINDINGS
|
| 1124 |
# ==========================================
|
| 1125 |
|
| 1126 |
-
|
| 1127 |
-
|
| 1128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1129 |
|
| 1130 |
export_data_btn.click(self.api_get_full_dataset_zip, outputs=[export_zip_file])
|
| 1131 |
train_btn.click(self.api_generate_training_data, outputs=[train_status])
|
|
|
|
| 907 |
gr.Markdown("## π PureVersation: Decentralized Dialect Mediator (Lab View)")
|
| 908 |
|
| 909 |
alert_player = gr.Audio(visible=False, autoplay=True)
|
| 910 |
+
status_timer = gr.Timer(value=5.0)
|
| 911 |
|
| 912 |
ui_source_tag = gr.Textbox(visible=False, value="Web")
|
| 913 |
ui_clar_source = gr.Textbox(visible=False, value="Lab Admin")
|
|
|
|
| 1123 |
# EVENT BINDINGS
|
| 1124 |
# ==========================================
|
| 1125 |
|
| 1126 |
+
def combined_tick():
|
| 1127 |
+
bg_status = self.check_background_status()
|
| 1128 |
+
bc_health = self.get_blockchain_health()
|
| 1129 |
+
pend_head, alert = self.monitor_pending_state()
|
| 1130 |
+
return bg_status, bc_health, pend_head, alert
|
| 1131 |
+
|
| 1132 |
+
status_timer.tick(combined_tick, outputs=[background_status_display, health_display, pending_header, alert_player])
|
| 1133 |
|
| 1134 |
export_data_btn.click(self.api_get_full_dataset_zip, outputs=[export_zip_file])
|
| 1135 |
train_btn.click(self.api_generate_training_data, outputs=[train_status])
|