Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -219,8 +219,24 @@ def create_demo(model_name: str, device: str = "cuda:0" if torch.cuda.is_availab
|
|
219 |
|
220 |
with gr.Row():
|
221 |
with gr.Column():
|
222 |
-
source_prompt = gr.Textbox(label="Source Prompt", value="")
|
223 |
-
target_prompt = gr.Textbox(label="Target Prompt", value="")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
init_image = gr.Image(label="Input Image", visible=True)
|
225 |
|
226 |
|
|
|
219 |
|
220 |
with gr.Row():
|
221 |
with gr.Column():
|
222 |
+
# source_prompt = gr.Textbox(label="Source Prompt", value="")
|
223 |
+
# target_prompt = gr.Textbox(label="Target Prompt", value="")
|
224 |
+
source_prompt = gr.Text(
|
225 |
+
label="Source Prompt",
|
226 |
+
show_label=False,
|
227 |
+
max_lines=1,
|
228 |
+
placeholder="Enter your source prompt",
|
229 |
+
container=False,
|
230 |
+
value=""
|
231 |
+
)
|
232 |
+
target_prompt = gr.Text(
|
233 |
+
label="Target Prompt",
|
234 |
+
show_label=False,
|
235 |
+
max_lines=1,
|
236 |
+
placeholder="Enter your target prompt",
|
237 |
+
container=False,
|
238 |
+
value=""
|
239 |
+
)
|
240 |
init_image = gr.Image(label="Input Image", visible=True)
|
241 |
|
242 |
|