Maxew commited on
Commit
cf70a96
·
verified ·
1 Parent(s): 3b7f827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,5 +3,6 @@ import os
3
 
4
  space_path = os.environ.get('space_path')
5
  space_key = os.environ.get('read_token')
6
- iface = gr.load(name=space_path, hf_token=space_key, src='spaces')
7
- iface.launch(show_api=False)
 
 
3
 
4
  space_path = os.environ.get('space_path')
5
  space_key = os.environ.get('read_token')
6
+ with gr.Blocks(fill_height=True) as demo:
7
+ iface = gr.load(name=space_path, hf_token=space_key, src='spaces')
8
+ demo.launch(show_api=False)