Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -99,23 +99,23 @@ header = """
|
|
99 |
def create_app():
|
100 |
with gr.Blocks() as app:
|
101 |
gr.Markdown(header)
|
102 |
-
with gr.Tabs():
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
# with gr.Tab("Fill"):
|
120 |
# gr.Markdown("Coming soon")
|
121 |
# with gr.Tab("Canny"):
|
|
|
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"):
|
120 |
# gr.Markdown("Coming soon")
|
121 |
# with gr.Tab("Canny"):
|