mattiashallberg's picture
Update app.py
c318ff6 verified
raw
history blame
401 Bytes
import gradio as gr
from gradio_client import Client
import os
HF_TOKEN = os.environ.get('HF_TOKEN_PUBLIC_FROM_PRIVATE', None)
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