Spaces:
Runtime error
Runtime error
Commit
•
a9f69d4
1
Parent(s):
5f938e5
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import openai as oai
|
|
4 |
#pip3 install gradio
|
5 |
import gradio as gr
|
6 |
|
7 |
-
|
8 |
#if you have OpenAI API key as an environment variable, enable the below
|
9 |
openai.api_key = os.getenv("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")
|
10 |
|
@@ -56,5 +56,5 @@ with block:
|
|
56 |
submit = gr.Button("SEND")
|
57 |
submit.click(cjrSmartBot, inputs=[message, state], outputs=[chatbot, state])
|
58 |
|
59 |
-
block.launch(share
|
60 |
|
|
|
4 |
#pip3 install gradio
|
5 |
import gradio as gr
|
6 |
|
7 |
+
|
8 |
#if you have OpenAI API key as an environment variable, enable the below
|
9 |
openai.api_key = os.getenv("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")
|
10 |
|
|
|
56 |
submit = gr.Button("SEND")
|
57 |
submit.click(cjrSmartBot, inputs=[message, state], outputs=[chatbot, state])
|
58 |
|
59 |
+
block.launch(share==True)
|
60 |
|