Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,6 +78,10 @@ def rag_memory_stream(text):
|
|
| 78 |
examples = ['I feel dizzy', 'what is the possible sickness for fatigue']
|
| 79 |
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
|
| 83 |
title = "Real-time AI App with Groq API and LangChain to Answer medical questions"
|
|
@@ -87,6 +91,7 @@ demo = gr.ChatInterface(rag_memory_stream,
|
|
| 87 |
fill_height=True,
|
| 88 |
examples=examples,
|
| 89 |
theme=gr.themes.Soft(),
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
|
|
|
|
| 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"
|
|
|
|
| 91 |
fill_height=True,
|
| 92 |
examples=examples,
|
| 93 |
theme=gr.themes.Soft(),
|
| 94 |
+
chatbot=chatbot
|
| 95 |
)
|
| 96 |
|
| 97 |
|