Spaces:
Sleeping
Sleeping
Se agrega clave de acceso
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ with open("Iso_Logotipo_Ceibal.png", "rb") as image_file:
|
|
14 |
|
15 |
|
16 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
|
17 |
|
18 |
def clear_chat(message, chat_history):
|
19 |
return "", []
|
@@ -94,4 +95,4 @@ with gr.Blocks() as demo:
|
|
94 |
clear.click(clear_chat,inputs=[msg, chatbot], outputs=[msg, chatbot])
|
95 |
|
96 |
demo.queue()
|
97 |
-
demo.launch()
|
|
|
14 |
|
15 |
|
16 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
17 |
+
access_pwd = os.environ['INTERFACE_PWD']
|
18 |
|
19 |
def clear_chat(message, chat_history):
|
20 |
return "", []
|
|
|
95 |
clear.click(clear_chat,inputs=[msg, chatbot], outputs=[msg, chatbot])
|
96 |
|
97 |
demo.queue()
|
98 |
+
demo.launch(auth = 'Ceibal_IA', 'access_pwd')
|