zac commited on
Commit
40a9466
·
1 Parent(s): d58cf6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,9 +24,9 @@ def generate_text(input_text, history):
24
  response = output['choices'][0]['text'] + "\n"
25
  print("response", response)
26
  history =["init",input_text_with_history]
27
- return response
28
  for out in output:
29
  print(json.dump(out, indent=2))
 
30
 
31
  demo = gr.ChatInterface(generate_text)
32
  demo.queue(concurrency_count=1, max_size=5)
 
24
  response = output['choices'][0]['text'] + "\n"
25
  print("response", response)
26
  history =["init",input_text_with_history]
 
27
  for out in output:
28
  print(json.dump(out, indent=2))
29
+ return response
30
 
31
  demo = gr.ChatInterface(generate_text)
32
  demo.queue(concurrency_count=1, max_size=5)