Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def run_demo_server(pipe):
|
|
120 |
minimum=1,
|
121 |
maximum=20,
|
122 |
step=1,
|
123 |
-
value=
|
124 |
)
|
125 |
ensemble_size = gr.Slider(
|
126 |
label="Ensemble size",
|
@@ -277,24 +277,7 @@ def main():
|
|
277 |
|
278 |
pipe = pipe.to(device)
|
279 |
|
280 |
-
|
281 |
-
input_image = Image.open('files/bee.jpg')
|
282 |
-
print(1)
|
283 |
-
|
284 |
-
pipe_out = pipe(
|
285 |
-
input_image,
|
286 |
-
denosing_steps=10,
|
287 |
-
ensemble_size=1,
|
288 |
-
processing_res=768,
|
289 |
-
batch_size=0,
|
290 |
-
guidance_scale=3,
|
291 |
-
domain="indoor",
|
292 |
-
show_progress_bar=True,
|
293 |
-
)
|
294 |
-
|
295 |
-
print(1)
|
296 |
-
|
297 |
-
# run_demo_server(pipe)
|
298 |
|
299 |
|
300 |
if __name__ == "__main__":
|
|
|
120 |
minimum=1,
|
121 |
maximum=20,
|
122 |
step=1,
|
123 |
+
value=2,
|
124 |
)
|
125 |
ensemble_size = gr.Slider(
|
126 |
label="Ensemble size",
|
|
|
277 |
|
278 |
pipe = pipe.to(device)
|
279 |
|
280 |
+
run_demo_server(pipe)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
|
283 |
if __name__ == "__main__":
|