Spaces:
Sleeping
Sleeping
Update for Gradio version
Browse files- app.py +4 -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(
|
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 |
-
|
2 |
-
gradio
|
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
|