Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ my_output = gr.outputs.Textbox(label="ECOWATCH AI's Response")
|
|
| 41 |
|
| 42 |
api_input = gr.inputs.Textbox(label="Enter your OpenAI API token:", placeholder="Insert your API token here...")
|
| 43 |
|
| 44 |
-
|
| 45 |
fn=chatbot_with_submit,
|
| 46 |
inputs=[my_input, api_input],
|
| 47 |
outputs=my_output,
|
|
@@ -50,4 +50,4 @@ iface = gr.Interface(
|
|
| 50 |
)
|
| 51 |
|
| 52 |
# Share the link
|
| 53 |
-
|
|
|
|
| 41 |
|
| 42 |
api_input = gr.inputs.Textbox(label="Enter your OpenAI API token:", placeholder="Insert your API token here...")
|
| 43 |
|
| 44 |
+
demo = gr.Interface(
|
| 45 |
fn=chatbot_with_submit,
|
| 46 |
inputs=[my_input, api_input],
|
| 47 |
outputs=my_output,
|
|
|
|
| 50 |
)
|
| 51 |
|
| 52 |
# Share the link
|
| 53 |
+
demo.launch(share=False)
|