Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,10 +13,10 @@ def generate_image(prompt):
|
|
| 13 |
image = pipe(prompt).images[0]
|
| 14 |
return image
|
| 15 |
|
| 16 |
-
# Запуск Gradio интерфейса
|
| 17 |
gr.Interface(
|
| 18 |
fn=generate_image,
|
| 19 |
inputs="text",
|
| 20 |
outputs="image",
|
| 21 |
title="Stable Diffusion WebUI"
|
| 22 |
-
).launch()
|
|
|
|
| 13 |
image = pipe(prompt).images[0]
|
| 14 |
return image
|
| 15 |
|
| 16 |
+
# Запуск Gradio интерфейса с публичной ссылкой
|
| 17 |
gr.Interface(
|
| 18 |
fn=generate_image,
|
| 19 |
inputs="text",
|
| 20 |
outputs="image",
|
| 21 |
title="Stable Diffusion WebUI"
|
| 22 |
+
).launch(share=True)
|