Spaces:
Sleeping
Sleeping
bug issue resolved
Browse files
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 |
-
|
|
|
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()
|