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