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