Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def run_gpt(
|
|
| 75 |
resp = ""
|
| 76 |
for response in stream:
|
| 77 |
resp += response.token.text
|
| 78 |
-
|
| 79 |
'''
|
| 80 |
resp = openai.ChatCompletion.create(
|
| 81 |
model=MODEL,
|
|
@@ -466,7 +466,7 @@ examples=[["I'm planning a vacation to Japan. Can you suggest a one-week itinera
|
|
| 466 |
|
| 467 |
|
| 468 |
gr.ChatInterface(
|
| 469 |
-
fn=
|
| 470 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
| 471 |
additional_inputs=additional_inputs,
|
| 472 |
title="Mixtral 46.7B",
|
|
|
|
| 75 |
resp = ""
|
| 76 |
for response in stream:
|
| 77 |
resp += response.token.text
|
| 78 |
+
yield resp
|
| 79 |
'''
|
| 80 |
resp = openai.ChatCompletion.create(
|
| 81 |
model=MODEL,
|
|
|
|
| 466 |
|
| 467 |
|
| 468 |
gr.ChatInterface(
|
| 469 |
+
fn=run,
|
| 470 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
| 471 |
additional_inputs=additional_inputs,
|
| 472 |
title="Mixtral 46.7B",
|