Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ def chat_with_interpreter(message, history=[]):
|
|
| 23 |
return output
|
| 24 |
|
| 25 |
openai_api_key = gr.Textbox(label='OpenAI API Key', intercative=True)
|
|
|
|
| 26 |
examples=[["what is 2+2?"],
|
| 27 |
["Can you solve for x: 10x -65=0?"],
|
| 28 |
["What are top 10 headlines from BBC from last week?"]
|
|
@@ -35,7 +36,7 @@ demo = gr.ChatInterface(fn=chat_with_interpreter,
|
|
| 35 |
clear_btn=None,
|
| 36 |
retry_btn=None,
|
| 37 |
undo_btn=None,
|
| 38 |
-
additional_inputs=
|
| 39 |
-
additional_inputs_accordion_name = "OpenAI API Key"
|
| 40 |
).queue()
|
| 41 |
demo.launch(debug=True)
|
|
|
|
| 23 |
return output
|
| 24 |
|
| 25 |
openai_api_key = gr.Textbox(label='OpenAI API Key', intercative=True)
|
| 26 |
+
additional_inputs = [openai_api_key]
|
| 27 |
examples=[["what is 2+2?"],
|
| 28 |
["Can you solve for x: 10x -65=0?"],
|
| 29 |
["What are top 10 headlines from BBC from last week?"]
|
|
|
|
| 36 |
clear_btn=None,
|
| 37 |
retry_btn=None,
|
| 38 |
undo_btn=None,
|
| 39 |
+
additional_inputs=additional_inputs,
|
| 40 |
+
additional_inputs_accordion_name = "OpenAI API Key",
|
| 41 |
).queue()
|
| 42 |
demo.launch(debug=True)
|