Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,8 +92,7 @@ body { background-color: #000000; color: #F0F0F0; font-family: 'Helvetica Neue',
|
|
| 92 |
footer { display: none !important; }
|
| 93 |
"""
|
| 94 |
|
| 95 |
-
with gr.Blocks(
|
| 96 |
-
|
| 97 |
# 1. VISUAL LAYER (Top)
|
| 98 |
with open("mandala_component.html", "r") as f:
|
| 99 |
html_content = f.read()
|
|
@@ -105,8 +104,8 @@ with gr.Blocks(theme=gr.themes.Base(), css=css, title="DEFRAG NODE") as demo:
|
|
| 105 |
audio_player = gr.Audio(label="System Voice", visible=True, interactive=False)
|
| 106 |
|
| 107 |
# 3. CHAT LAYER (Bottom)
|
| 108 |
-
|
| 109 |
-
|
| 110 |
|
| 111 |
# Hidden Data Bridge
|
| 112 |
visual_data = gr.JSON(visible=False)
|
|
@@ -143,4 +142,4 @@ with gr.Blocks(theme=gr.themes.Base(), css=css, title="DEFRAG NODE") as demo:
|
|
| 143 |
visual_data.change(None, [visual_data], None, js=js_bridge)
|
| 144 |
|
| 145 |
if __name__ == "__main__":
|
| 146 |
-
|
|
|
|
| 92 |
footer { display: none !important; }
|
| 93 |
"""
|
| 94 |
|
| 95 |
+
with gr.Blocks(title="DEFRAG NODE") as demo:
|
|
|
|
| 96 |
# 1. VISUAL LAYER (Top)
|
| 97 |
with open("mandala_component.html", "r") as f:
|
| 98 |
html_content = f.read()
|
|
|
|
| 104 |
audio_player = gr.Audio(label="System Voice", visible=True, interactive=False)
|
| 105 |
|
| 106 |
# 3. CHAT LAYER (Bottom)
|
| 107 |
+
chatbot = gr.Chatbot(label="DEFRAG // LOG", elem_classes="chat-window")
|
| 108 |
+
msg = gr.Textbox(placeholder="Input System Status...", show_label=False)
|
| 109 |
|
| 110 |
# Hidden Data Bridge
|
| 111 |
visual_data = gr.JSON(visible=False)
|
|
|
|
| 142 |
visual_data.change(None, [visual_data], None, js=js_bridge)
|
| 143 |
|
| 144 |
if __name__ == "__main__":
|
| 145 |
+
demo.launch(theme=gr.themes.Base(), css=css)
|