Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
css
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ import os
|
|
5 |
# HF_TOKEN = os.environ.get('HUGGING_FACE_HUB_TOKEN')
|
6 |
HF_TOKEN = os.environ.get('hf_access_to_attuned_sales_copilot_private')
|
7 |
|
|
|
|
|
|
|
|
|
8 |
def environ_auth(username, password):
|
9 |
if username == os.environ.get('mattias_hallberg') and password == os.environ.get('mattias_hallberg_password'):
|
10 |
return True
|
@@ -33,6 +37,6 @@ def environ_auth(username, password):
|
|
33 |
else:
|
34 |
return False
|
35 |
|
36 |
-
demo = gr.load("attuned-ai/AttunedSalesCo-Pilot-Private", src="spaces", hf_token=HF_TOKEN)
|
37 |
demo.queue(max_size=20)
|
38 |
demo.launch(auth=environ_auth)
|
|
|
5 |
# HF_TOKEN = os.environ.get('HUGGING_FACE_HUB_TOKEN')
|
6 |
HF_TOKEN = os.environ.get('hf_access_to_attuned_sales_copilot_private')
|
7 |
|
8 |
+
css = """
|
9 |
+
#alerttextarea {border: 2px solid red !important}
|
10 |
+
"""
|
11 |
+
|
12 |
def environ_auth(username, password):
|
13 |
if username == os.environ.get('mattias_hallberg') and password == os.environ.get('mattias_hallberg_password'):
|
14 |
return True
|
|
|
37 |
else:
|
38 |
return False
|
39 |
|
40 |
+
demo = gr.load("attuned-ai/AttunedSalesCo-Pilot-Private", src="spaces", hf_token=HF_TOKEN, css=css)
|
41 |
demo.queue(max_size=20)
|
42 |
demo.launch(auth=environ_auth)
|