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