Update app.py
Browse files145 unmodified lines146147148149150151152195 unmodified lines348349350351352353354145 unmodified linescontinuesub_title = lines[0]sub_texts = "。".join(lines[1:])words = int((width) / sz3) + 2sub_text = textwrap.wrap(sub_texts, width=words)# sub_text = [i.center(words) for i in sub_text]# -----文本框效果--------195 unmodified linescolor2 = gr.Textbox("#007000", label = "子标题颜色")font_txt = gr.Dropdown(choices = font_list, label = "文本字体", value = "fonts/simsun.ttc")sz3 = gr.Slider(1, 100, label = "wordSize", value=40, step = 5)txt_x = gr.Slider(1, WIDTH, label = "内容位置_x", value=80, step = 5)color3 = gr.Textbox("#101010", label = "文字颜色")with gr.Row():145 unmodified lines146147148149150151152195 unmodified lines348349350351352353354145 unmodified linescontinuesub_title = lines[0]sub_texts = "。".join(lines[1:])words = int((width - txt_x) / sz3) + 2sub_text = textwrap.wrap(sub_texts, width=words)# sub_text = [i.center(words) for i in sub_text]# -----文本框效果--------195 unmodified linescolor2 = gr.Textbox("#007000", label = "子标题颜色")font_txt = gr.Dropdown(choices = font_list, label = "文本字体", value = "fonts/simsun.ttc")sz3 = gr.Slider(1, 100, label = "wordSize", value=40, step = 5)txt_x = gr.Slider(1, WIDTH, label = "内容位置_x", value=20, step = 5)color3 = gr.Textbox("#101010", label = "文字颜色")with gr.Row():
app.py+2-2