Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,9 @@ import openai
|
|
3 |
import gradio as gr
|
4 |
import time
|
5 |
|
|
|
|
|
|
|
6 |
# Set up OpenAI client
|
7 |
openai.api_key = os.getenv('openai_api_key')
|
8 |
client = openai.Client(api_key=openai.api_key)
|
@@ -73,4 +76,4 @@ with gr.Blocks(css=custom_css) as demo:
|
|
73 |
bot, chatbot, chatbot
|
74 |
)
|
75 |
|
76 |
-
demo.launch()
|
|
|
3 |
import gradio as gr
|
4 |
import time
|
5 |
|
6 |
+
# Set up password
|
7 |
+
password = os.getenv('password')
|
8 |
+
|
9 |
# Set up OpenAI client
|
10 |
openai.api_key = os.getenv('openai_api_key')
|
11 |
client = openai.Client(api_key=openai.api_key)
|
|
|
76 |
bot, chatbot, chatbot
|
77 |
)
|
78 |
|
79 |
+
demo.launch(auth=(password))
|