Spaces:
Runtime error
Runtime error
Add tmp link codes
Browse files
app.py
CHANGED
@@ -4,4 +4,9 @@ import os
|
|
4 |
hf_token= os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
5 |
dev_space = os.environ["DEV_SPACE"]
|
6 |
demo = gr.load(dev_space, src="spaces", hf_token=hf_token)
|
7 |
-
demo.launch(auth=(os.getenv("USERNAME"), os.getenv("PASSWORD")))
|
|
|
|
|
|
|
|
|
|
|
|
4 |
hf_token= os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
5 |
dev_space = os.environ["DEV_SPACE"]
|
6 |
demo = gr.load(dev_space, src="spaces", hf_token=hf_token)
|
7 |
+
demo.launch(auth=(os.getenv("USERNAME"), os.getenv("PASSWORD")))
|
8 |
+
|
9 |
+
# or
|
10 |
+
# tmp_link = os.environ["REMOTE_GRADIO_LINK"]
|
11 |
+
# with gr.Blocks(css="""footer {visibility: hidden};""") as demo:
|
12 |
+
# output = gr.HTML("""<iframe src="{}" style="width:100%; height:1024px; overflow:auto"></iframe>""".format(tmp_link))
|