Harshveer commited on
Commit
555640c
Β·
1 Parent(s): cbad43a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -20
app.py CHANGED
@@ -104,25 +104,24 @@ with gr.Blocks() as myface:
104
 
105
  model_name1.change(set_model, inputs=model_name1, outputs=model_name1)
106
 
107
- run.click(send_it, inputs=[magic1, model_name1], outputs=[output1], batch=True, max_batch_size=32)
108
- run.click(send_it, inputs=[magic2, model_name1], outputs=[output2], batch=True, max_batch_size=32)
109
- run.click(send_it, inputs=[magic3, model_name1], outputs=[output3], batch=True, max_batch_size=32)
110
- run.click(send_it, inputs=[magic4, model_name1], outputs=[output4], batch=True, max_batch_size=32)
111
- run.click(send_it, inputs=[magic5, model_name1], outputs=[output5], batch=True, max_batch_size=32)
112
- run.click(send_it, inputs=[magic6, model_name1], outputs=[output6], batch=True, max_batch_size=32)
113
- run.click(send_it, inputs=[magic7, model_name1], outputs=[output7], batch=True, max_batch_size=32)
114
- run.click(send_it, inputs=[magic8, model_name1], outputs=[output8], batch=True, max_batch_size=32)
115
- run.click(send_it, inputs=[magic9, model_name1], outputs=[output9], batch=True, max_batch_size=32)
116
-
117
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic1], batch=True, max_batch_size=32)
118
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic2], batch=True, max_batch_size=32)
119
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic3], batch=True, max_batch_size=32)
120
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic4], batch=True, max_batch_size=32)
121
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic5], batch=True, max_batch_size=32)
122
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic6], batch=True, max_batch_size=32)
123
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic7], batch=True, max_batch_size=32)
124
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic8], batch=True, max_batch_size=32)
125
- see_prompts.click(text_it, inputs=[input_text], outputs=[magic9], batch=True, max_batch_size=32)
126
-
127
  myface.queue(concurrency_count=64)
128
  myface.launch(inline=True, show_api=False, max_threads=64)
 
104
 
105
  model_name1.change(set_model, inputs=model_name1, outputs=model_name1)
106
 
107
+ run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
108
+ run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
109
+ run.click(send_it, inputs=[magic3, model_name1], outputs=[output3])
110
+ run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
111
+ run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
112
+ run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
113
+ run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
114
+ run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
115
+ run.click(send_it, inputs=[magic9, model_name1], outputs=[output9])
116
+
117
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
118
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
119
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
120
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
121
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
122
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
123
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
124
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
125
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic9])
 
126
  myface.queue(concurrency_count=64)
127
  myface.launch(inline=True, show_api=False, max_threads=64)