Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,12 @@ import os
|
|
3 |
|
4 |
hf_token= os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
5 |
dev_space = os.environ["DEV_SPACE"]
|
6 |
-
|
7 |
-
|
8 |
|
9 |
# or
|
10 |
-
tmp_link = os.environ["REMOTE_GRADIO_LINK"]
|
11 |
-
|
12 |
-
|
13 |
-
output = gr.HTML("""<iframe src="{}" style="width:100%; height:1024px; overflow:auto"></iframe>""".format(tmp_link))
|
14 |
# demo.launch(auth=(os.getenv("USERNAME"), os.getenv("PASSWORD")))
|
15 |
demo.launch()
|
|
|
3 |
|
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()
|
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))
|
|
|
13 |
# demo.launch(auth=(os.getenv("USERNAME"), os.getenv("PASSWORD")))
|
14 |
demo.launch()
|