Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
1cc333a
1
Parent(s):
f77e7f8
Update app.py
Browse files
app.py
CHANGED
|
@@ -395,8 +395,8 @@ def create_interface():
|
|
| 395 |
with gr.Column(scale=2):
|
| 396 |
with gr.Accordion("Basic Settings"):
|
| 397 |
seed = gr.Number(label="Seed", value=0)
|
| 398 |
-
custom = gr.Textbox(label="Custom")
|
| 399 |
-
subject = gr.Textbox(label="Subject")
|
| 400 |
|
| 401 |
with gr.Accordion("Artform and Photo Type", open=False):
|
| 402 |
artform = gr.Dropdown(["disabled"] + ARTFORM, label="Artform", value="disabled")
|
|
@@ -431,11 +431,11 @@ def create_interface():
|
|
| 431 |
input_image = gr.Image(label="Input Image (optional)")
|
| 432 |
caption_output = gr.Textbox(label="Generated Caption", lines=3)
|
| 433 |
create_caption_button = gr.Button("Create Caption")
|
|
|
|
| 434 |
|
| 435 |
with gr.Accordion("Prompt Generation", open=True):
|
| 436 |
|
| 437 |
-
output = gr.Textbox(label="Generated Prompt / Input Text", lines=
|
| 438 |
-
add_caption_button = gr.Button("Add Caption to Prompt")
|
| 439 |
t5xxl_output = gr.Textbox(label="T5XXL Output", visible=True)
|
| 440 |
clip_l_output = gr.Textbox(label="CLIP L Output", visible=True)
|
| 441 |
clip_g_output = gr.Textbox(label="CLIP G Output", visible=True)
|
|
@@ -448,7 +448,7 @@ def create_interface():
|
|
| 448 |
compression_level = gr.Radio(["soft", "medium", "hard"], label="Compression Level", value="medium")
|
| 449 |
poster = gr.Checkbox(label="Poster", value=False)
|
| 450 |
custom_base_prompt = gr.Textbox(label="Custom Base Prompt", lines=5)
|
| 451 |
-
generate_text_button = gr.Button("Generate
|
| 452 |
text_output = gr.Textbox(label="Generated Text", lines=10)
|
| 453 |
|
| 454 |
def create_caption(image):
|
|
|
|
| 395 |
with gr.Column(scale=2):
|
| 396 |
with gr.Accordion("Basic Settings"):
|
| 397 |
seed = gr.Number(label="Seed", value=0)
|
| 398 |
+
custom = gr.Textbox(label="Custom Input Prompt (optional)")
|
| 399 |
+
subject = gr.Textbox(label="Subject (optional)")
|
| 400 |
|
| 401 |
with gr.Accordion("Artform and Photo Type", open=False):
|
| 402 |
artform = gr.Dropdown(["disabled"] + ARTFORM, label="Artform", value="disabled")
|
|
|
|
| 431 |
input_image = gr.Image(label="Input Image (optional)")
|
| 432 |
caption_output = gr.Textbox(label="Generated Caption", lines=3)
|
| 433 |
create_caption_button = gr.Button("Create Caption")
|
| 434 |
+
add_caption_button = gr.Button("Add Caption to Prompt")
|
| 435 |
|
| 436 |
with gr.Accordion("Prompt Generation", open=True):
|
| 437 |
|
| 438 |
+
output = gr.Textbox(label="Generated Prompt / Input Text", lines=4)
|
|
|
|
| 439 |
t5xxl_output = gr.Textbox(label="T5XXL Output", visible=True)
|
| 440 |
clip_l_output = gr.Textbox(label="CLIP L Output", visible=True)
|
| 441 |
clip_g_output = gr.Textbox(label="CLIP G Output", visible=True)
|
|
|
|
| 448 |
compression_level = gr.Radio(["soft", "medium", "hard"], label="Compression Level", value="medium")
|
| 449 |
poster = gr.Checkbox(label="Poster", value=False)
|
| 450 |
custom_base_prompt = gr.Textbox(label="Custom Base Prompt", lines=5)
|
| 451 |
+
generate_text_button = gr.Button("Generate Prompt with LLM")
|
| 452 |
text_output = gr.Textbox(label="Generated Text", lines=10)
|
| 453 |
|
| 454 |
def create_caption(image):
|