Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ load_dotenv()
|
|
| 11 |
# Replace with your key
|
| 12 |
client = OpenAI()
|
| 13 |
you_key = os.getenv("YOU_API_KEY")
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
def get_ai_snippets_for_query(query):
|
| 17 |
headers = {"X-API-Key": you_key}
|
|
@@ -105,4 +106,4 @@ strategy = gr.Radio(["Deep", "Normal"], label="Strategy", value="Normal",
|
|
| 105 |
|
| 106 |
app = gr.ChatInterface(predict, additional_inputs=[n_web_search, strategy])
|
| 107 |
app.queue(default_concurrency_limit=5)
|
| 108 |
-
app.launch(debug=True, share=False, auth=(
|
|
|
|
| 11 |
# Replace with your key
|
| 12 |
client = OpenAI()
|
| 13 |
you_key = os.getenv("YOU_API_KEY")
|
| 14 |
+
username = os.getenv("USERNAME")
|
| 15 |
+
password = os.getenv('PASSWORD')
|
| 16 |
|
| 17 |
def get_ai_snippets_for_query(query):
|
| 18 |
headers = {"X-API-Key": you_key}
|
|
|
|
| 106 |
|
| 107 |
app = gr.ChatInterface(predict, additional_inputs=[n_web_search, strategy])
|
| 108 |
app.queue(default_concurrency_limit=5)
|
| 109 |
+
app.launch(debug=True, share=False, auth=(username, password), auth_message='Twimbit project ABM')
|