mattiashallberg
commited on
Commit
•
b09de0c
1
Parent(s):
c318ff6
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,10 @@ from gradio_client import Client
|
|
3 |
import os
|
4 |
|
5 |
HF_TOKEN = os.environ.get('HF_TOKEN_PUBLIC_FROM_PRIVATE', None)
|
|
|
|
|
|
|
|
|
6 |
|
7 |
gr.load(name="spaces/attuned-ai/Attuned-Communication-Bot", api_key=HF_TOKEN).launch()
|
8 |
|
|
|
3 |
import os
|
4 |
|
5 |
HF_TOKEN = os.environ.get('HF_TOKEN_PUBLIC_FROM_PRIVATE', None)
|
6 |
+
if HF_TOKEN:
|
7 |
+
pass
|
8 |
+
else:
|
9 |
+
print("to HF_TOKEN token found!")
|
10 |
|
11 |
gr.load(name="spaces/attuned-ai/Attuned-Communication-Bot", api_key=HF_TOKEN).launch()
|
12 |
|