Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
| 3 |
-
import glob
|
| 4 |
|
| 5 |
import spaces
|
| 6 |
|
|
@@ -455,11 +454,6 @@ with gr.Blocks() as demo:
|
|
| 455 |
with gr.Row():
|
| 456 |
with gr.Column(variant="panel"):
|
| 457 |
img_input = gr.Image(type="pil", label="Upload Image(without background)", image_mode="RGBA", width=768, height=512)
|
| 458 |
-
gr.Examples(
|
| 459 |
-
label="Example Images",
|
| 460 |
-
examples=glob.glob("./2D_Stage/material/examples/*.png"),
|
| 461 |
-
inputs=[img_input]
|
| 462 |
-
)
|
| 463 |
with gr.Row():
|
| 464 |
width_input = gr.Number(label="Width", value=512)
|
| 465 |
height_input = gr.Number(label="Height", value=768)
|
|
@@ -501,4 +495,4 @@ with gr.Blocks() as demo:
|
|
| 501 |
)
|
| 502 |
|
| 503 |
demo.queue()
|
| 504 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
|
|
|
| 3 |
|
| 4 |
import spaces
|
| 5 |
|
|
|
|
| 454 |
with gr.Row():
|
| 455 |
with gr.Column(variant="panel"):
|
| 456 |
img_input = gr.Image(type="pil", label="Upload Image(without background)", image_mode="RGBA", width=768, height=512)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 457 |
with gr.Row():
|
| 458 |
width_input = gr.Number(label="Width", value=512)
|
| 459 |
height_input = gr.Number(label="Height", value=768)
|
|
|
|
| 495 |
)
|
| 496 |
|
| 497 |
demo.queue()
|
| 498 |
+
demo.launch(show_api=False)
|