Spaces:
Runtime error
Runtime error
Brian Watson
commited on
Commit
·
219f3ed
1
Parent(s):
1723703
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks() as myface:
|
|
58 |
|
59 |
with gr.Row():
|
60 |
with gr.Row():
|
61 |
-
input_text = gr.Textbox(label="Prompt idea",
|
62 |
# Model selection dropdown
|
63 |
model_name1 = gr.Dropdown(
|
64 |
label="Choose Model",
|
@@ -87,16 +87,8 @@ with gr.Blocks() as myface:
|
|
87 |
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
88 |
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
89 |
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
90 |
-
with gr.Row():
|
91 |
-
output7 = gr.Image(label="")
|
92 |
-
output8 = gr.Image(label="")
|
93 |
-
output9 = gr.Image(label="")
|
94 |
-
with gr.Row():
|
95 |
-
magic7 = gr.Textbox(label="Generated Prompt", lines=2)
|
96 |
-
magic8 = gr.Textbox(label="Generated Prompt", lines=2)
|
97 |
-
magic9 = gr.Textbox(label="Generated Prompt", lines=2)
|
98 |
|
99 |
-
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6
|
100 |
|
101 |
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
102 |
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
@@ -104,9 +96,6 @@ with gr.Blocks() as myface:
|
|
104 |
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
105 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
106 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
107 |
-
run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
|
108 |
-
run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
|
109 |
-
run.click(send_it, inputs=[magic9, model_name1], outputs=[output9])
|
110 |
|
111 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
112 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
@@ -114,9 +103,6 @@ with gr.Blocks() as myface:
|
|
114 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
|
115 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
|
116 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
|
117 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
|
118 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
|
119 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic9])
|
120 |
|
121 |
myface.queue(concurrency_count=200)
|
122 |
myface.launch(inline=True, show_api=False, max_threads=400)
|
|
|
58 |
|
59 |
with gr.Row():
|
60 |
with gr.Row():
|
61 |
+
input_text = gr.Textbox(label="Prompt idea", placeholder="", lines=1)
|
62 |
# Model selection dropdown
|
63 |
model_name1 = gr.Dropdown(
|
64 |
label="Choose Model",
|
|
|
87 |
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
88 |
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
89 |
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
+
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
|
92 |
|
93 |
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
94 |
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
|
|
96 |
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
97 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
98 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
|
|
|
|
|
|
99 |
|
100 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
101 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
|
|
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 |
|
107 |
myface.queue(concurrency_count=200)
|
108 |
myface.launch(inline=True, show_api=False, max_threads=400)
|