johann22 commited on
Commit
e1a91d5
1 Parent(s): 2a11bb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def run_gpt(
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,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=generate,
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",