Spaces:
Paused
Paused
Update app_gradio.py
Browse files- app_gradio.py +18 -8
app_gradio.py
CHANGED
@@ -220,14 +220,24 @@ def create_gradio_interface():
|
|
220 |
|
221 |
with gr.Row():
|
222 |
with gr.Column():
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
|
232 |
motion_prompt = gr.Textbox(
|
233 |
label="Prompt",
|
|
|
220 |
|
221 |
with gr.Row():
|
222 |
with gr.Column():
|
223 |
+
with gr.Tab("Main"):
|
224 |
+
input_sketch = gr.Image(
|
225 |
+
type="pil",
|
226 |
+
label="Selected Sketch",
|
227 |
+
scale=1,
|
228 |
+
interactive=True,
|
229 |
+
height=300 # Fixed height for consistency
|
230 |
+
)
|
231 |
+
with gr.Tab("Draw"):
|
232 |
+
draw_sketchpad = gr.Sketchpad(
|
233 |
+
type="pil",
|
234 |
+
height=300
|
235 |
+
)
|
236 |
+
|
237 |
+
def predict(im):
|
238 |
+
return im["composite"]
|
239 |
+
|
240 |
+
draw_sketchpad.change(load_drawing, outputs=input_sketch, inputs=draw_sketchpad, show_progress="hidden")
|
241 |
|
242 |
motion_prompt = gr.Textbox(
|
243 |
label="Prompt",
|