Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -751,25 +751,23 @@ with gr.Blocks(css=css) as myface:
|
|
751 |
with gr.Column(scale=50):
|
752 |
gr.ImagePaint(label="Draw", interactive=True)
|
753 |
with gr.Row():
|
754 |
-
with gr.
|
755 |
-
|
756 |
-
|
757 |
-
run=gr.Button("Generate Image")
|
758 |
with gr.Row():
|
759 |
-
with gr.
|
760 |
-
|
761 |
-
|
762 |
with gr.Row():
|
763 |
-
with gr.
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
with gr.Row():
|
768 |
-
with gr.
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
see_prompts=gr.Button("Extend Idea")
|
773 |
|
774 |
|
775 |
def short_prompt(inputs):
|
|
|
751 |
with gr.Column(scale=50):
|
752 |
gr.ImagePaint(label="Draw", interactive=True)
|
753 |
with gr.Row():
|
754 |
+
with gr.Column(scale=100):
|
755 |
+
magic1=gr.Textbox(lines=4)
|
756 |
+
run=gr.Button("Generate Image")
|
|
|
757 |
with gr.Row():
|
758 |
+
with gr.Column(scale=100):
|
759 |
+
#Model selection dropdown
|
760 |
+
model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
|
761 |
with gr.Row():
|
762 |
+
with gr.Column(style="width=800px"):
|
763 |
+
output1=gr.Image(label=(f"{current_model}"))
|
764 |
+
|
765 |
+
|
766 |
with gr.Row():
|
767 |
+
with gr.Column(scale=50):
|
768 |
+
input_text=gr.Textbox(label="Prompt Idea",lines=2)
|
769 |
+
use_short=gr.Button("Use Short Prompt")
|
770 |
+
see_prompts=gr.Button("Extend Idea")
|
|
|
771 |
|
772 |
|
773 |
def short_prompt(inputs):
|