Spaces:
Runtime error
Runtime error
Commit
·
7b3226e
1
Parent(s):
5d6e9c7
Update app.py
Browse files
app.py
CHANGED
@@ -39,11 +39,7 @@ with gr.Blocks() as demo:
|
|
39 |
# pinecone_api_key, pinecone_environment, pinecone_index_name], [label, file])
|
40 |
msg.submit(create_conversation, [msg, chatbot, collection_name], [msg, chatbot])
|
41 |
|
42 |
-
|
43 |
-
# username: ('LawGPT0','')
|
44 |
-
# password: ('GPT089!')
|
45 |
-
# return username == password
|
46 |
-
|
47 |
# Retrieve the serialized list of username and password pairs from environment variable
|
48 |
credentials_json = os.environ.get("CREDENTIALS")
|
49 |
|
@@ -55,5 +51,3 @@ else:
|
|
55 |
demo.launch(auth=credentials)
|
56 |
|
57 |
|
58 |
-
#if __name__ == '__main__':
|
59 |
-
#demo.launch(auth=[("admin", "pa"),("razzan", "rosli")])
|
|
|
39 |
# pinecone_api_key, pinecone_environment, pinecone_index_name], [label, file])
|
40 |
msg.submit(create_conversation, [msg, chatbot, collection_name], [msg, chatbot])
|
41 |
|
42 |
+
|
|
|
|
|
|
|
|
|
43 |
# Retrieve the serialized list of username and password pairs from environment variable
|
44 |
credentials_json = os.environ.get("CREDENTIALS")
|
45 |
|
|
|
51 |
demo.launch(auth=credentials)
|
52 |
|
53 |
|
|
|
|