File size: 477 Bytes
0c05632 c318ff6 b09de0c 0c05632 c318ff6 0c05632 e649ffb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from gradio_client import Client
import os
HF_TOKEN = os.environ.get('HF_TOKEN_PUBLIC_FROM_PRIVATE', None)
if HF_TOKEN:
pass
else:
print("to HF_TOKEN token found!")
gr.load(name="spaces/attuned-ai/Attuned-Communication-Bot", api_key=HF_TOKEN).launch()
# login works
# def environ_auth(username, password):
# if username == os.environ["username"] and password == os.environ["password"]:
# return True
# else:
# return False |