eudoxie commited on
Commit
9a5d4f4
·
verified ·
1 Parent(s): 4e71151

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -54,7 +54,9 @@ def rag_memory_stream(message, history):
54
  partial_text += new_text
55
  yield partial_text
56
 
57
- greetingsmessage = "Hi, I'm the CAMELS DocBot, I'm here to assist you with any question related to the CAMELS simulations."
 
 
58
  initial_history = [("", greetingsmessage)]
59
 
60
  title = "MediGuide ChatBot"
@@ -63,9 +65,8 @@ title = "MediGuide ChatBot"
63
  demo = gr.Interface(
64
  title=title,
65
  fn=rag_memory_stream,
66
- inputs=[
67
- gr.Chatbot(value=initial_history, label="Chat History"),
68
- "text"
69
  ],
70
  outputs=gr.Chatbot(label="Chat History"),
71
  allow_flagging="never",
 
54
  partial_text += new_text
55
  yield partial_text
56
 
57
+ greetingsmessage = """Hello! Welcome to MediGuide ChatBot. I'm here to provide you with quick and accurate information on medical drugs.
58
+ Whether you need details on usage, side effects , etc feel free to ask. Let's enhance patient care together!"""
59
+
60
  initial_history = [("", greetingsmessage)]
61
 
62
  title = "MediGuide ChatBot"
 
65
  demo = gr.Interface(
66
  title=title,
67
  fn=rag_memory_stream,
68
+ inputs=[
69
+ gr.Chatbot(value=initial_history, label="Chat History"),"text"
 
70
  ],
71
  outputs=gr.Chatbot(label="Chat History"),
72
  allow_flagging="never",