aiqtech commited on
Commit
37ae5d9
·
verified ·
1 Parent(s): 7b74dcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -765,7 +765,16 @@ def get_text_params():
765
  aspect_ratio,
766
  position,
767
  scale_slider,
768
- gr.State(get_text_params)
 
 
 
 
 
 
 
 
 
769
  ],
770
  outputs=[combined_image, extracted_image],
771
  queue=True
 
765
  aspect_ratio,
766
  position,
767
  scale_slider,
768
+ # 텍스트 파라미터를 직접 전달
769
+ {
770
+ 'text': text_input,
771
+ 'font_size': font_size,
772
+ 'thickness': thickness,
773
+ 'color': color_dropdown,
774
+ 'opacity': opacity_slider,
775
+ 'x_position': text_x_position,
776
+ 'y_position': text_y_position
777
+ }
778
  ],
779
  outputs=[combined_image, extracted_image],
780
  queue=True