Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,22 +98,23 @@ header = """
|
|
98 |
|
99 |
def create_app():
|
100 |
with gr.Blocks() as app:
|
101 |
-
gr.Markdown(header)
|
102 |
# with gr.Tabs():
|
103 |
# with gr.Tab("Subject-driven"):
|
104 |
gr.Interface(
|
105 |
fn=process_image_and_text,
|
106 |
inputs=[
|
107 |
-
gr.Image(type="pil", label="Condition Image", width=300),
|
108 |
gr.Radio(
|
109 |
[("512", 512), ("1024(beta)", 1024)],
|
110 |
label="Resolution",
|
111 |
value=512,
|
|
|
112 |
),
|
113 |
# gr.Slider(4, 16, 4, step=4, label="Inference Steps"),
|
114 |
-
gr.Textbox(lines=2, label="Text Prompt"),
|
115 |
],
|
116 |
-
outputs=gr.Image(type="pil"),
|
117 |
examples=get_samples(),
|
118 |
)
|
119 |
# with gr.Tab("Fill"):
|
|
|
98 |
|
99 |
def create_app():
|
100 |
with gr.Blocks() as app:
|
101 |
+
gr.Markdown(header, elem_id="header")
|
102 |
# with gr.Tabs():
|
103 |
# with gr.Tab("Subject-driven"):
|
104 |
gr.Interface(
|
105 |
fn=process_image_and_text,
|
106 |
inputs=[
|
107 |
+
gr.Image(type="pil", label="Condition Image", width=300, elem_id="input"),
|
108 |
gr.Radio(
|
109 |
[("512", 512), ("1024(beta)", 1024)],
|
110 |
label="Resolution",
|
111 |
value=512,
|
112 |
+
elem_id="resolution",
|
113 |
),
|
114 |
# gr.Slider(4, 16, 4, step=4, label="Inference Steps"),
|
115 |
+
gr.Textbox(lines=2, label="Text Prompt", elem_id="text"),
|
116 |
],
|
117 |
+
outputs=gr.Image(type="pil", elem_id="output"),
|
118 |
examples=get_samples(),
|
119 |
)
|
120 |
# with gr.Tab("Fill"):
|