ArunAIML commited on
Commit
1b2a00c
·
1 Parent(s): f0e8cfd

bug issue resolved

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,10 +15,11 @@ chain = prompt | llm | StrOutputParser()
15
 
16
  def chat(prompt, history):
17
 
 
18
  for chunk in chain.stream({"input": prompt}):
19
- yield chunk.content
 
20
 
21
- gr.Chat
22
  demo = gr.ChatInterface(chat).queue()
23
 
24
  demo.launch()
 
15
 
16
  def chat(prompt, history):
17
 
18
+ output = ""
19
  for chunk in chain.stream({"input": prompt}):
20
+ output += chunk
21
+ yield output
22
 
 
23
  demo = gr.ChatInterface(chat).queue()
24
 
25
  demo.launch()