kenton-li commited on
Commit
fbcd12e
·
1 Parent(s): b605abd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -136,7 +136,10 @@ with gr.Blocks() as demo:
136
  invitation = "ChatDoctor: "
137
  human_invitation = "Patient: "
138
 
139
- question = history[:,0]
 
 
 
140
  response = csv_prompter(question,csv_name)
141
 
142
  response = invitation+ response
 
136
  invitation = "ChatDoctor: "
137
  human_invitation = "Patient: "
138
 
139
+ question = ""
140
+ for each_ques in history[1:]:
141
+ question = each_ques[0]+"\n"
142
+
143
  response = csv_prompter(question,csv_name)
144
 
145
  response = invitation+ response