anekcb commited on
Commit
c8ef30c
·
verified ·
1 Parent(s): 77b220b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- iface = gr.Interface(
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
- iface.launch(share=True)
 
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)