Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def run(ref_path, ref_style, ref_prompt, prompt1, prompt2, prompt3):
|
|
| 84 |
css = """
|
| 85 |
#col-container{
|
| 86 |
margin: 0 auto;
|
| 87 |
-
max-width:
|
| 88 |
}
|
| 89 |
"""
|
| 90 |
|
|
@@ -94,20 +94,20 @@ with gr.Blocks(css=css) as demo:
|
|
| 94 |
<h2 style="text-align: center;">Google's StyleAligned Transfer</h2>
|
| 95 |
"""
|
| 96 |
)
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
-
|
| 104 |
-
with gr.Group():
|
| 105 |
-
prompt1 = gr.Textbox(label="Prompt1", value="A man working on a laptop")
|
| 106 |
-
prompt2 = gr.Textbox(label="Prompt2", value="A man eating pizza")
|
| 107 |
-
prompt3 = gr.Textbox(label="Prompt3", value="A woman playing on saxophone")
|
| 108 |
-
run_button = gr.Button("Submit")
|
| 109 |
-
|
| 110 |
-
results = gr.Gallery()
|
| 111 |
|
| 112 |
run_button.click(
|
| 113 |
fn = run,
|
|
|
|
| 84 |
css = """
|
| 85 |
#col-container{
|
| 86 |
margin: 0 auto;
|
| 87 |
+
max-width: 820px;
|
| 88 |
}
|
| 89 |
"""
|
| 90 |
|
|
|
|
| 94 |
<h2 style="text-align: center;">Google's StyleAligned Transfer</h2>
|
| 95 |
"""
|
| 96 |
)
|
| 97 |
+
with gr.Row():
|
| 98 |
+
with gr.Column():
|
| 99 |
+
ref_path = gr.Image(type="filepath", value="./example_image/medieval-bed.jpeg")
|
| 100 |
+
ref_style = gr.Textbox(label="Reference style", value="medieval painting")
|
| 101 |
+
ref_prompt = gr.Textbox(label="Reference prompt", value="Man laying on bed")
|
| 102 |
+
|
| 103 |
+
with gr.Column():
|
| 104 |
+
with gr.Group():
|
| 105 |
+
prompt1 = gr.Textbox(label="Prompt1", value="A man working on a laptop")
|
| 106 |
+
prompt2 = gr.Textbox(label="Prompt2", value="A man eating pizza")
|
| 107 |
+
prompt3 = gr.Textbox(label="Prompt3", value="A woman playing on saxophone")
|
| 108 |
+
run_button = gr.Button("Submit")
|
| 109 |
|
| 110 |
+
results = gr.Gallery()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
run_button.click(
|
| 113 |
fn = run,
|