Spaces:
Running
Running
Brian Watson
commited on
Commit
•
96d39e2
1
Parent(s):
edb2002
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ with gr.Blocks() as myface:
|
|
47 |
|
48 |
with gr.Row():
|
49 |
with gr.Row():
|
50 |
-
input_text = gr.Textbox(label="Prompt idea",
|
51 |
# Model selection dropdown
|
52 |
model_name1 = gr.Dropdown(
|
53 |
label="Choose Model",
|
@@ -76,16 +76,8 @@ with gr.Blocks() as myface:
|
|
76 |
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
77 |
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
78 |
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
79 |
-
with gr.Row():
|
80 |
-
output7 = gr.Image(label="")
|
81 |
-
output8 = gr.Image(label="")
|
82 |
-
output9 = gr.Image(label="")
|
83 |
-
with gr.Row():
|
84 |
-
magic7 = gr.Textbox(label="Generated Prompt", lines=2)
|
85 |
-
magic8 = gr.Textbox(label="Generated Prompt", lines=2)
|
86 |
-
magic9 = gr.Textbox(label="Generated Prompt", lines=2)
|
87 |
|
88 |
-
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6
|
89 |
|
90 |
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
91 |
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
@@ -93,9 +85,6 @@ with gr.Blocks() as myface:
|
|
93 |
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
94 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
95 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
96 |
-
run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
|
97 |
-
run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
|
98 |
-
run.click(send_it, inputs=[magic9, model_name1], outputs=[output9])
|
99 |
|
100 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
101 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
@@ -103,9 +92,6 @@ with gr.Blocks() as myface:
|
|
103 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
|
104 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
|
105 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
|
106 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
|
107 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
|
108 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic9])
|
109 |
|
110 |
myface.queue(concurrency_count=200)
|
111 |
myface.launch(inline=True, show_api=False, max_threads=400)
|
|
|
47 |
|
48 |
with gr.Row():
|
49 |
with gr.Row():
|
50 |
+
input_text = gr.Textbox(label="Prompt idea", placeholder="", lines=1)
|
51 |
# Model selection dropdown
|
52 |
model_name1 = gr.Dropdown(
|
53 |
label="Choose Model",
|
|
|
76 |
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
77 |
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
78 |
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
+
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
|
81 |
|
82 |
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
83 |
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
|
|
85 |
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
86 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
87 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
|
|
|
|
|
|
88 |
|
89 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
90 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
|
|
92 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
|
93 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
|
94 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
|
|
|
|
|
|
|
95 |
|
96 |
myface.queue(concurrency_count=200)
|
97 |
myface.launch(inline=True, show_api=False, max_threads=400)
|