cjo93 commited on
Commit
a63387e
·
verified ·
1 Parent(s): 9884500

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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(theme=gr.themes.Base(), css=css, title="DEFRAG NODE") as demo:
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
- chatbot = gr.Chatbot(label="DEFRAG // LOG", type="messages", elem_classes="chat-window")
109
- msg = gr.Textbox(placeholder="Input System Status...", show_label=False)
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
- demo.launch()
 
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)