Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -201,8 +201,12 @@ with gr.Blocks(css=css) as myface:
|
|
201 |
return(inputs)
|
202 |
|
203 |
model_name1.change(set_model,inputs=model_name1,outputs=[output1,output2,output3,output4,output5,output6,output7,output8])
|
|
|
|
|
|
|
|
|
204 |
|
205 |
-
run.click(send_it1, inputs=[
|
206 |
run.click(send_it2, inputs=[magic2, model_name1], outputs=[output2])
|
207 |
run.click(send_it3, inputs=[magic3, model_name1], outputs=[output3])
|
208 |
run.click(send_it4, inputs=[magic4, model_name1], outputs=[output4])
|
|
|
201 |
return(inputs)
|
202 |
|
203 |
model_name1.change(set_model,inputs=model_name1,outputs=[output1,output2,output3,output4,output5,output6,output7,output8])
|
204 |
+
|
205 |
+
if(magic1==""):
|
206 |
+
magic1=f"{prompt}"
|
207 |
+
prompt1=magic1
|
208 |
|
209 |
+
run.click(send_it1, inputs=[prompt1, model_name1], outputs=[output1])
|
210 |
run.click(send_it2, inputs=[magic2, model_name1], outputs=[output2])
|
211 |
run.click(send_it3, inputs=[magic3, model_name1], outputs=[output3])
|
212 |
run.click(send_it4, inputs=[magic4, model_name1], outputs=[output4])
|