Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from pdfminer.high_level import extract_text
|
|
| 8 |
|
| 9 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
| 10 |
|
| 11 |
-
user_db = {os.environ['username1']: os.environ['password1'], os.environ['username2']: os.environ['password2']}
|
| 12 |
|
| 13 |
messages = [{"role": "system", "content": 'You are a helpful assistant.'}]
|
| 14 |
|
|
@@ -138,5 +138,5 @@ demo = gr.TabbedInterface([role, text, audio, siri, file, chatHistory], [ "roleC
|
|
| 138 |
|
| 139 |
if __name__ == "__main__":
|
| 140 |
demo.launch(enable_queue=False, auth=lambda u, p: user_db.get(u) == p,
|
| 141 |
-
auth_message="
|
| 142 |
#demo.launch()
|
|
|
|
| 8 |
|
| 9 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
| 10 |
|
| 11 |
+
user_db = {os.environ['username1']: os.environ['password1'], os.environ['username2']: os.environ['password2'], os.environ['username3']: os.environ['password3']}
|
| 12 |
|
| 13 |
messages = [{"role": "system", "content": 'You are a helpful assistant.'}]
|
| 14 |
|
|
|
|
| 138 |
|
| 139 |
if __name__ == "__main__":
|
| 140 |
demo.launch(enable_queue=False, auth=lambda u, p: user_db.get(u) == p,
|
| 141 |
+
auth_message="This is not designed to be used publicly as it links to a personal openAI API. However, you can copy my code and create your own multi-functional ChatGPT with your unique ID and password by utilizing the 'Repository secrets' feature in huggingface.")
|
| 142 |
#demo.launch()
|