Yntec commited on
Commit
9a5d383
·
1 Parent(s): 38a7279

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -30
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=[magic2, model_name1], outputs=[output2])
216
- run.click(send_it3, inputs=[magic3, model_name1], outputs=[output3])
217
- run.click(send_it4, inputs=[magic4, model_name1], outputs=[output4])
218
- run.click(send_it5, inputs=[magic5, model_name1], outputs=[output5])
219
- run.click(send_it6, inputs=[magic6, model_name1], outputs=[output6])
220
- run.click(send_it7, inputs=[magic7, model_name1], outputs=[output7])
221
- run.click(send_it8, inputs=[magic8, model_name1], outputs=[output8])
222
 
223
  use_short.click(short_prompt,inputs=[prompt],outputs=magic1)
224
- use_short.click(short_prompt,inputs=[prompt],outputs=magic2)
225
- use_short.click(short_prompt,inputs=[prompt],outputs=magic3)
226
- use_short.click(short_prompt,inputs=[prompt],outputs=magic4)
227
- use_short.click(short_prompt,inputs=[prompt],outputs=magic5)
228
- use_short.click(short_prompt,inputs=[prompt],outputs=magic6)
229
- use_short.click(short_prompt,inputs=[prompt],outputs=magic7)
230
- use_short.click(short_prompt,inputs=[prompt],outputs=magic8)
231
 
232
  see_prompts.click(text_it1,inputs=[prompt],outputs=magic1)
233
- see_prompts.click(text_it2,inputs=[prompt],outputs=magic2)
234
- see_prompts.click(text_it3,inputs=[prompt],outputs=magic3)
235
- see_prompts.click(text_it4,inputs=[prompt],outputs=magic4)
236
- see_prompts.click(text_it5,inputs=[prompt],outputs=magic5)
237
- see_prompts.click(text_it6,inputs=[prompt],outputs=magic6)
238
- see_prompts.click(text_it7,inputs=[prompt],outputs=magic7)
239
- see_prompts.click(text_it8,inputs=[prompt],outputs=magic8)
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)