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