Lookimi commited on
Commit
999c8cf
1 Parent(s): ef75301

Update ChatGPT_app.py

Browse files
Files changed (1) hide show
  1. ChatGPT_app.py +2 -2
ChatGPT_app.py CHANGED
@@ -33,14 +33,14 @@ demo = gr.Interface(
33
  fn=Question,
34
  inputs="text", outputs="text")
35
  # Create a secondary window with history of responses
36
- gr.Interface(title="History", fn=lambda: responses, inputs=None, outputs=responses, live=False).launch(share=True)
37
 
38
  # Launch interface
39
  demo.launch(share=true)
40
  Check this code to make sure it'll run:
41
  chat_history = [
42
  ["User", prompt],
43
- ["OpenAI", response["choices"][0]["text"]]
44
  ]
45
 
46
 
 
33
  fn=Question,
34
  inputs="text", outputs="text")
35
  # Create a secondary window with history of responses
36
+ gr.Interface(title="History", fn=lambda: responses, inputs=None, outputs=responses, live=True).launch(share=True)
37
 
38
  # Launch interface
39
  demo.launch(share=true)
40
  Check this code to make sure it'll run:
41
  chat_history = [
42
  ["User", prompt],
43
+ ["OpenAI", responses["choices"][0]["text"]]
44
  ]
45
 
46