LISA / app.py
Kadi-IAM's picture
Update app.py
9ceb084 verified
raw
history blame
509 Bytes
import gradio as gr
import os
hf_token= os.environ["HUGGINGFACEHUB_API_TOKEN"]
dev_space = os.environ["DEV_SPACE"]
demo = gr.load(dev_space, src="spaces", hf_token=hf_token)
demo.launch()
# or
#tmp_link = os.environ["REMOTE_GRADIO_LINK"]
# with gr.Blocks(css="""footer {visibility: hidden};""") as demo:
# output = gr.HTML("""<iframe src="{}" style="width:100%; height:1024px; overflow:auto"></iframe>""".format(tmp_link))
# demo.launch(auth=(os.getenv("USERNAME"), os.getenv("PASSWORD")))
demo.launch()