Kadi-IAM commited on
Commit
9ceb084
·
verified ·
1 Parent(s): 56b473e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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
- # 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
-
12
- with gr.Blocks(css="""footer {visibility: hidden};""") as demo:
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()