Update app.py
Browse files
app.py
CHANGED
@@ -45,11 +45,6 @@ def set_model(current_model_index):
|
|
45 |
|
46 |
with gr.Blocks() as pan:
|
47 |
gr.Markdown("AI CONTENT TOOLS.")
|
48 |
-
|
49 |
-
## run = gr.Button("Generate Images")
|
50 |
-
with gr.Row():
|
51 |
-
see_prompts = gr.Button("Generate Prompts")
|
52 |
-
run = gr.Button("Generate Images", variant="primary")
|
53 |
|
54 |
with gr.Tab("T-to-I"):
|
55 |
|
@@ -59,9 +54,15 @@ with gr.Blocks() as pan:
|
|
59 |
choices=[m["name"] for m in models],
|
60 |
type="index",
|
61 |
value=current_model["name"],
|
62 |
-
|
63 |
)
|
64 |
input_text = gr.Textbox(label="Prompt idea",)
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
with gr.Row():
|
66 |
output1 = gr.Image(label="")
|
67 |
magic1 = gr.Textbox(label="Generated Prompt", lines=2)
|
|
|
45 |
|
46 |
with gr.Blocks() as pan:
|
47 |
gr.Markdown("AI CONTENT TOOLS.")
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
with gr.Tab("T-to-I"):
|
50 |
|
|
|
54 |
choices=[m["name"] for m in models],
|
55 |
type="index",
|
56 |
value=current_model["name"],
|
57 |
+
interactive=True,
|
58 |
)
|
59 |
input_text = gr.Textbox(label="Prompt idea",)
|
60 |
+
|
61 |
+
## run = gr.Button("Generate Images")
|
62 |
+
with gr.Row():
|
63 |
+
see_prompts = gr.Button("Generate Prompts")
|
64 |
+
run = gr.Button("Generate Images", variant="primary")
|
65 |
+
|
66 |
with gr.Row():
|
67 |
output1 = gr.Image(label="")
|
68 |
magic1 = gr.Textbox(label="Generated Prompt", lines=2)
|