Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ with demo:
|
|
75 |
with gr.Row():
|
76 |
with gr.Column():
|
77 |
gr.Markdown("### Image to Prompt")
|
78 |
-
input_image = gr.
|
79 |
image_button = gr.Button("Generate Prompt")
|
80 |
|
81 |
gr.Markdown("### Long Prompt to Short Prompt")
|
@@ -87,7 +87,7 @@ with demo:
|
|
87 |
|
88 |
with gr.Column():
|
89 |
gr.Markdown("### Learned Prompt")
|
90 |
-
output_prompt = gr.
|
91 |
|
92 |
image_button.click(inference, inputs=[input_image, prompt_len_field, num_step_field], outputs=output_prompt)
|
93 |
prompt_button.click(inference_text, inputs=[input_prompt, prompt_len_field, num_step_field], outputs=output_prompt)
|
|
|
75 |
with gr.Row():
|
76 |
with gr.Column():
|
77 |
gr.Markdown("### Image to Prompt")
|
78 |
+
input_image = gr.Image(type="pil", label="Target Image")
|
79 |
image_button = gr.Button("Generate Prompt")
|
80 |
|
81 |
gr.Markdown("### Long Prompt to Short Prompt")
|
|
|
87 |
|
88 |
with gr.Column():
|
89 |
gr.Markdown("### Learned Prompt")
|
90 |
+
output_prompt = gr.Textbox(label="Learned Prompt")
|
91 |
|
92 |
image_button.click(inference, inputs=[input_image, prompt_len_field, num_step_field], outputs=output_prompt)
|
93 |
prompt_button.click(inference_text, inputs=[input_prompt, prompt_len_field, num_step_field], outputs=output_prompt)
|