Rajan Sharma commited on
Commit
25dfc45
·
verified ·
1 Parent(s): aae6699

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,4 +1,5 @@
1
  # app.py
 
2
  import os, traceback, regex as re2
3
  import gradio as gr
4
  import pandas as pd
@@ -89,8 +90,8 @@ def handle(user_msg: str, history: list, files: list) -> Tuple[list, str]:
89
  # -------- UI --------
90
  with gr.Blocks(analytics_enabled=False) as demo:
91
  gr.Markdown("## Canadian Healthcare AI • Scenario-Agnostic (Cohere primary • Deterministic analytics)")
92
- # tuple mode matches how we store history as (user, assistant)
93
- chat = gr.Chatbot(type="tuple", height=520)
94
  files = gr.Files(
95
  file_count="multiple",
96
  type="filepath",
@@ -109,5 +110,5 @@ with gr.Blocks(analytics_enabled=False) as demo:
109
  clear.click(lambda: ([], ""), outputs=[chat, msg])
110
 
111
  if __name__ == "__main__":
112
- # You can set share=True if you want a public link in dev.
113
  demo.launch(server_name="0.0.0.0", server_port=int(os.getenv("PORT", "7860")))
 
 
1
  # app.py
2
+ # app.py
3
  import os, traceback, regex as re2
4
  import gradio as gr
5
  import pandas as pd
 
90
  # -------- UI --------
91
  with gr.Blocks(analytics_enabled=False) as demo:
92
  gr.Markdown("## Canadian Healthcare AI • Scenario-Agnostic (Cohere primary • Deterministic analytics)")
93
+ # Use the correct plural form: 'tuples'
94
+ chat = gr.Chatbot(type="tuples", height=520)
95
  files = gr.Files(
96
  file_count="multiple",
97
  type="filepath",
 
110
  clear.click(lambda: ([], ""), outputs=[chat, msg])
111
 
112
  if __name__ == "__main__":
 
113
  demo.launch(server_name="0.0.0.0", server_port=int(os.getenv("PORT", "7860")))
114
+