mattiashallberg commited on
Commit
a13f04e
·
verified ·
1 Parent(s): c654853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -2,12 +2,8 @@ import gradio as gr
2
  from gradio_client import Client
3
  import os
4
 
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'):
@@ -37,6 +33,6 @@ def environ_auth(username, password):
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)
 
2
  from gradio_client import Client
3
  import os
4
 
 
5
  HF_TOKEN = os.environ.get('hf_access_to_attuned_sales_copilot_private')
6
 
 
 
 
7
 
8
  def environ_auth(username, password):
9
  if username == os.environ.get('mattias_hallberg') and password == os.environ.get('mattias_hallberg_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)