prashantmatlani commited on
Commit
e80e041
·
1 Parent(s): ad2c9d5

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -18,7 +18,8 @@ from core_logic import chat_function
18
  from storage import save_chat, load_history, get_chat_content
19
  from git_agent import manage_github_repo
20
 
21
- with gr.Blocks(theme=gr.themes.Soft(), css="styles.css") as demo:
 
22
  # This state keeps track of the filename for the current session
23
  chat_id_state = gr.State("")
24
 
@@ -39,7 +40,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css="styles.css") as demo:
39
 
40
  # --- Center Panel: Main Core Multimodal Chat ---
41
  with gr.Column(scale=3):
42
- chatbot = gr.Chatbot(show_label=False, height=700, type="messages")
 
43
  chat_input = gr.MultimodalTextbox(
44
  interactive=True,
45
  placeholder="Discuss architecture or ask CoderG to produce course documentation...",
@@ -143,4 +145,5 @@ with gr.Blocks(theme=gr.themes.Soft(), css="styles.css") as demo:
143
  [output_log]
144
  )
145
 
 
146
  demo.launch(theme=gr.themes.Soft(), css="styles.css")
 
18
  from storage import save_chat, load_history, get_chat_content
19
  from git_agent import manage_github_repo
20
 
21
+ # Theme and css parameters not included under gr.Blocks constructor for Gradio 6
22
+ with gr.Blocks() as demo:
23
  # This state keeps track of the filename for the current session
24
  chat_id_state = gr.State("")
25
 
 
40
 
41
  # --- Center Panel: Main Core Multimodal Chat ---
42
  with gr.Column(scale=3):
43
+ # type="messages" not included as it is now default/implicit in Gradio 6
44
+ chatbot = gr.Chatbot(show_label=False, height=700)
45
  chat_input = gr.MultimodalTextbox(
46
  interactive=True,
47
  placeholder="Discuss architecture or ask CoderG to produce course documentation...",
 
145
  [output_log]
146
  )
147
 
148
+ # Fully consolidated theme and styling injections down into launch() parameter fields
149
  demo.launch(theme=gr.themes.Soft(), css="styles.css")