shaoyent commited on
Commit
a4d4a45
1 Parent(s): e17e617

Update for Gradio version

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. requirements.txt +3 -3
app.py CHANGED
@@ -95,7 +95,7 @@ For better results, specify "360 view of" or "panoramic view of" in the prompt
95
  with gr.Row():
96
  new_btn = gr.Button("New Image")
97
  with gr.Column(scale=2):
98
- html = gr.HTML(height='50%')
99
  with gr.Row():
100
  rgb = gr.Image(label="RGB Image", type="filepath")
101
  depth = gr.Image(label="Depth Image", type="filepath")
@@ -113,4 +113,6 @@ For better results, specify "360 view of" or "panoramic view of" in the prompt
113
  outputs=[rgb, depth, generated_seed, html],
114
  )
115
 
116
- block.launch()
 
 
 
95
  with gr.Row():
96
  new_btn = gr.Button("New Image")
97
  with gr.Column(scale=2):
98
+ html = gr.HTML()
99
  with gr.Row():
100
  rgb = gr.Image(label="RGB Image", type="filepath")
101
  depth = gr.Image(label="Depth Image", type="filepath")
 
113
  outputs=[rgb, depth, generated_seed, html],
114
  )
115
 
116
+ block.launch(
117
+ allowed_paths=["assets/", "static/", "tmp/"]
118
+ )
requirements.txt CHANGED
@@ -1,9 +1,9 @@
1
- git+https://github.com/huggingface/diffusers@07c9a08e67feb4d05ba22ba6b1a2d39468d68225
2
- gradio==3.40.1
3
  transformers
4
  accelerate
5
  Pillow
6
  numpy
7
  xformers
8
  # --index-url https://download.pytorch.org/whl/cu118
9
- torch
 
1
+ diffusers
2
+ gradio
3
  transformers
4
  accelerate
5
  Pillow
6
  numpy
7
  xformers
8
  # --index-url https://download.pytorch.org/whl/cu118
9
+ torch