File size: 644 Bytes
0c05632 37c74f6 c2585c5 0c05632 1bd00b9 9928cdb 7c5a76c 1bd00b9 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('HUGGING_FACE_HUB_TOKEN')
HF_TOKEN = os.environ.get('hf_access_to_private_space2')
# gr.load(name="Attuned-Communication-Bot", src="spaces").launch()
# gr.load(name="spaces/attuned-ai/Attuned-Communication-Bot", hf_token=HF_TOKEN, src="spaces").launch()
demo = gr.load("attuned-ai/Attuned-Communication-Bot", src="spaces", hf_token=HF_TOKEN)
demo.launch()
# login works
# def environ_auth(username, password):
# if username == os.environ["username"] and password == os.environ["password"]:
# return True
# else:
# return False |