Yntec commited on
Commit
9fa5e04
·
1 Parent(s): baa88d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -203,8 +203,9 @@ with gr.Blocks(css=css) as myface:
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])
 
203
  model_name1.change(set_model,inputs=model_name1,outputs=[output1,output2,output3,output4,output5,output6,output7,output8])
204
 
205
  if(magic1==""):
206
+ prompt1=f"{prompt}"
207
+ else:
208
+ prompt1=magic1
209
 
210
  run.click(send_it1, inputs=[prompt1, model_name1], outputs=[output1])
211
  run.click(send_it2, inputs=[magic2, model_name1], outputs=[output2])