Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -176,20 +176,20 @@ with gr.Blocks(css=css) as myface:
|
|
176 |
output3=gr.Image(label=(f"{current_model}"))
|
177 |
output4=gr.Image(label=(f"{current_model}"))
|
178 |
with gr.Row():
|
179 |
-
prompt=gr.Textbox(lines=4)
|
180 |
-
magic2=gr.Textbox(lines=4)
|
181 |
-
magic3=gr.Textbox(lines=4)
|
182 |
-
magic4=gr.Textbox(lines=4)
|
183 |
with gr.Row():
|
184 |
output5=gr.Image(label=(f"{current_model}"))
|
185 |
output6=gr.Image(label=(f"{current_model}"))
|
186 |
output7=gr.Image(label=(f"{current_model}"))
|
187 |
output8=gr.Image(label=(f"{current_model}"))
|
188 |
with gr.Row():
|
189 |
-
magic5=gr.Textbox(lines=4)
|
190 |
-
magic6=gr.Textbox(lines=4)
|
191 |
-
magic7=gr.Textbox(lines=4)
|
192 |
-
magic8=gr.Textbox(lines=4)
|
193 |
with gr.Row():
|
194 |
with gr.Column(scale=50):
|
195 |
use_short=gr.Button("Copy Prompt to All Boxes")
|
@@ -210,33 +210,33 @@ with gr.Blocks(css=css) as myface:
|
|
210 |
#def magic2(magic1):
|
211 |
# magic2=f"happy, {magic1}"
|
212 |
# return(magic2)
|
213 |
-
magic2=f"happy, {magic1}"
|
214 |
|
215 |
-
run.click(send_it2, inputs=[
|
216 |
-
run.click(send_it3, inputs=[
|
217 |
-
run.click(send_it4, inputs=[
|
218 |
-
run.click(send_it5, inputs=[
|
219 |
-
run.click(send_it6, inputs=[
|
220 |
-
run.click(send_it7, inputs=[
|
221 |
-
run.click(send_it8, inputs=[
|
222 |
|
223 |
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
224 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
225 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
226 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
227 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
228 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
229 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
230 |
-
use_short.click(short_prompt,inputs=[prompt],outputs=
|
231 |
|
232 |
see_prompts.click(text_it1,inputs=[prompt],outputs=magic1)
|
233 |
-
see_prompts.click(text_it2,inputs=[prompt],outputs=
|
234 |
-
see_prompts.click(text_it3,inputs=[prompt],outputs=
|
235 |
-
see_prompts.click(text_it4,inputs=[prompt],outputs=
|
236 |
-
see_prompts.click(text_it5,inputs=[prompt],outputs=
|
237 |
-
see_prompts.click(text_it6,inputs=[prompt],outputs=
|
238 |
-
see_prompts.click(text_it7,inputs=[prompt],outputs=
|
239 |
-
see_prompts.click(text_it8,inputs=[prompt],outputs=
|
240 |
|
241 |
myface.queue(concurrency_count=200)
|
242 |
myface.launch(inline=True, show_api=False, max_threads=400)
|
|
|
176 |
output3=gr.Image(label=(f"{current_model}"))
|
177 |
output4=gr.Image(label=(f"{current_model}"))
|
178 |
with gr.Row():
|
179 |
+
#prompt=gr.Textbox(lines=4)
|
180 |
+
#magic2=gr.Textbox(lines=4)
|
181 |
+
#magic3=gr.Textbox(lines=4)
|
182 |
+
#magic4=gr.Textbox(lines=4)
|
183 |
with gr.Row():
|
184 |
output5=gr.Image(label=(f"{current_model}"))
|
185 |
output6=gr.Image(label=(f"{current_model}"))
|
186 |
output7=gr.Image(label=(f"{current_model}"))
|
187 |
output8=gr.Image(label=(f"{current_model}"))
|
188 |
with gr.Row():
|
189 |
+
#magic5=gr.Textbox(lines=4)
|
190 |
+
#magic6=gr.Textbox(lines=4)
|
191 |
+
#magic7=gr.Textbox(lines=4)
|
192 |
+
#magic8=gr.Textbox(lines=4)
|
193 |
with gr.Row():
|
194 |
with gr.Column(scale=50):
|
195 |
use_short=gr.Button("Copy Prompt to All Boxes")
|
|
|
210 |
#def magic2(magic1):
|
211 |
# magic2=f"happy, {magic1}"
|
212 |
# return(magic2)
|
213 |
+
#magic2=f"happy, {magic1}"
|
214 |
|
215 |
+
run.click(send_it2, inputs=[magic1, model_name1], outputs=[output2])
|
216 |
+
run.click(send_it3, inputs=[magic1, model_name1], outputs=[output3])
|
217 |
+
run.click(send_it4, inputs=[magic1, model_name1], outputs=[output4])
|
218 |
+
run.click(send_it5, inputs=[magic1, model_name1], outputs=[output5])
|
219 |
+
run.click(send_it6, inputs=[magic1, model_name1], outputs=[output6])
|
220 |
+
run.click(send_it7, inputs=[magic1, model_name1], outputs=[output7])
|
221 |
+
run.click(send_it8, inputs=[magic1, model_name1], outputs=[output8])
|
222 |
|
223 |
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
224 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
225 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
226 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
227 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
228 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
229 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
230 |
+
use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
|
231 |
|
232 |
see_prompts.click(text_it1,inputs=[prompt],outputs=magic1)
|
233 |
+
see_prompts.click(text_it2,inputs=[prompt],outputs=magic1)
|
234 |
+
see_prompts.click(text_it3,inputs=[prompt],outputs=magic1)
|
235 |
+
see_prompts.click(text_it4,inputs=[prompt],outputs=magic1)
|
236 |
+
see_prompts.click(text_it5,inputs=[prompt],outputs=magic1)
|
237 |
+
see_prompts.click(text_it6,inputs=[prompt],outputs=magic1)
|
238 |
+
see_prompts.click(text_it7,inputs=[prompt],outputs=magic1)
|
239 |
+
see_prompts.click(text_it8,inputs=[prompt],outputs=magic1)
|
240 |
|
241 |
myface.queue(concurrency_count=200)
|
242 |
myface.launch(inline=True, show_api=False, max_threads=400)
|