sultan-hassan commited on
Commit
7c89955
·
verified ·
1 Parent(s): c25219e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -75,25 +75,32 @@ def rag_memory_stream(text, history):
75
  partial_text += new_text
76
  yield partial_text
77
 
78
- examples = ['I feel dizzy', 'what is the possible sickness for fatigue']
 
 
 
 
 
79
 
80
 
81
  chatbot = gr.Chatbot([{"role":"assistant", "content":"Hey I am medical expert, how can I help you today?"}],
82
  type="messages",
 
83
  height="60vh")
84
 
85
 
86
 
87
- title = "Real-time AI App with Groq API and LangChain to Answer medical questions"
88
  demo = gr.ChatInterface(rag_memory_stream,
89
  type="messages",
90
  title=title,
91
  fill_height=True,
92
  examples=examples,
93
  theme=gr.themes.Soft(),
 
94
  chatbot=chatbot
95
  )
96
 
97
 
98
  if __name__ == "__main__":
99
- demo.launch(share=True)
 
75
  partial_text += new_text
76
  yield partial_text
77
 
78
+ examples = [
79
+ "I feel dizzy",
80
+ "what is the possible sickness for fatigue?"
81
+ ]
82
+
83
+ description = "Real-time AI App with Groq API and LangChain to Answer medical questions"
84
 
85
 
86
  chatbot = gr.Chatbot([{"role":"assistant", "content":"Hey I am medical expert, how can I help you today?"}],
87
  type="messages",
88
+ avatar_images=None,
89
  height="60vh")
90
 
91
 
92
 
93
+ title = "Medical Expert :) Try me!"
94
  demo = gr.ChatInterface(rag_memory_stream,
95
  type="messages",
96
  title=title,
97
  fill_height=True,
98
  examples=examples,
99
  theme=gr.themes.Soft(),
100
+ description=description,
101
  chatbot=chatbot
102
  )
103
 
104
 
105
  if __name__ == "__main__":
106
+ demo.launch()