Spaces:
Running
on
Zero
Running
on
Zero
LPX55
commited on
Commit
·
c6f8b7e
1
Parent(s):
f4fde31
type error
Browse files
app_v3.py
CHANGED
@@ -77,8 +77,8 @@ def combine_caption_focus(caption, focus):
|
|
77 |
if caption is None:
|
78 |
caption = ""
|
79 |
if focus is None:
|
80 |
-
focus = ""
|
81 |
-
return (caption + "\n\n" + focus).strip()
|
82 |
|
83 |
def generate_caption(control_image):
|
84 |
if control_image is None:
|
@@ -154,7 +154,7 @@ with gr.Blocks(title="FLUX Turbo Upscaler", fill_height=True) as demo:
|
|
154 |
with gr.Row():
|
155 |
with gr.Column(scale=1):
|
156 |
prompt = gr.Textbox(lines=4, info="Enter your prompt here or wait for auto-generation...", label="Image Description")
|
157 |
-
focus = gr.Textbox(label="
|
158 |
scale = gr.Slider(1, 3, value=1, label="Scale (Upscale Factor)", step=0.25)
|
159 |
with gr.Row():
|
160 |
generate_button = gr.Button("Generate Image", variant="primary")
|
|
|
77 |
if caption is None:
|
78 |
caption = ""
|
79 |
if focus is None:
|
80 |
+
focus = "highly detailed photo, raw photography."
|
81 |
+
return (str(caption) + "\n\n" + str(focus)).strip()
|
82 |
|
83 |
def generate_caption(control_image):
|
84 |
if control_image is None:
|
|
|
154 |
with gr.Row():
|
155 |
with gr.Column(scale=1):
|
156 |
prompt = gr.Textbox(lines=4, info="Enter your prompt here or wait for auto-generation...", label="Image Description")
|
157 |
+
focus = gr.Textbox(label="Area(s) of Focus", info="e.g. 'face', 'eyes', 'hair', 'clothes', 'background', etc.", value="clothing material, textures, ethnicity")
|
158 |
scale = gr.Slider(1, 3, value=1, label="Scale (Upscale Factor)", step=0.25)
|
159 |
with gr.Row():
|
160 |
generate_button = gr.Button("Generate Image", variant="primary")
|