Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -318,7 +318,19 @@ with gr.Blocks() as demo:
|
|
| 318 |
|
| 319 |
result = gr.Image(label="Result", show_label=True, type="pil")
|
| 320 |
#result = gr.Gallery(label="Result", show_label=True, type="pil")
|
| 321 |
-
with gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
prompt = gr.Text(
|
| 323 |
label="Prompt",
|
| 324 |
value='Style Transfer the style of Figure 2 to Figure 1, and keep the content and characteristics of Figure 1.',
|
|
|
|
| 318 |
|
| 319 |
result = gr.Image(label="Result", show_label=True, type="pil")
|
| 320 |
#result = gr.Gallery(label="Result", show_label=True, type="pil")
|
| 321 |
+
with gr.Column():
|
| 322 |
+
|
| 323 |
+
checkbox=gr.CheckboxGroup(["infer with content prompt", "infer with style prompt"], label="Prompt Enhancer", )
|
| 324 |
+
content_prompt=gr.Text(
|
| 325 |
+
label="Content Reference Prompt",
|
| 326 |
+
show_label=True,
|
| 327 |
+
container=True,
|
| 328 |
+
)
|
| 329 |
+
style_prompt=gr.Text(
|
| 330 |
+
label="Style Reference Prompt",
|
| 331 |
+
show_label=True,
|
| 332 |
+
container=True,
|
| 333 |
+
)
|
| 334 |
prompt = gr.Text(
|
| 335 |
label="Prompt",
|
| 336 |
value='Style Transfer the style of Figure 2 to Figure 1, and keep the content and characteristics of Figure 1.',
|