Commit
·
31cf2be
1
Parent(s):
492d4b7
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,7 @@ def generate(prompt, history, system_prompt, temperature=0.2, max_new_tokens=512
|
|
| 56 |
output = ""
|
| 57 |
|
| 58 |
for response in stream:
|
|
|
|
| 59 |
output += response.token.text
|
| 60 |
yield output
|
| 61 |
return output
|
|
@@ -117,7 +118,7 @@ additional_inputs=[
|
|
| 117 |
mychatbot = gr.Chatbot(
|
| 118 |
avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=False)
|
| 119 |
|
| 120 |
-
demo = gr.ChatInterface(fn=
|
| 121 |
chatbot=mychatbot,
|
| 122 |
additional_inputs=additional_inputs,
|
| 123 |
title="Kamran's Mixtral 8x7b Chat",
|
|
|
|
| 56 |
output = ""
|
| 57 |
|
| 58 |
for response in stream:
|
| 59 |
+
print(response.token.text + "/n")
|
| 60 |
output += response.token.text
|
| 61 |
yield output
|
| 62 |
return output
|
|
|
|
| 118 |
mychatbot = gr.Chatbot(
|
| 119 |
avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=False)
|
| 120 |
|
| 121 |
+
demo = gr.ChatInterface(fn=generate,
|
| 122 |
chatbot=mychatbot,
|
| 123 |
additional_inputs=additional_inputs,
|
| 124 |
title="Kamran's Mixtral 8x7b Chat",
|