mattiashallberg commited on
Commit
0c05632
1 Parent(s): ed2f1ef

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_client import Client
3
+ import os
4
+
5
+ HF_TOKEN = os.environ.get('HF_TOKEN', None)
6
+
7
+ gr.load(name=“spaces/attuned-ai/Attuned-Communication-Bot”, api_key=HF_TOKEN).launch()
8
+
9
+ # login works
10
+ def environ_auth(username, password):
11
+ if username == os.environ["username"] and password == os.environ["password"]:
12
+ return True
13
+ else:
14
+ return False