Spaces:
Sleeping
Sleeping
Update ChatGPT_app.py
Browse files- 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=
|
| 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",
|
| 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 |
|