Update app.py
Browse files
app.py
CHANGED
@@ -371,6 +371,9 @@ with gr.Blocks() as demo:
|
|
371 |
|
372 |
# mv_files = gr.Files(movies, label="movies")
|
373 |
# img_files = gr.Files(imgs_cur, label="movie_imgs")
|
|
|
|
|
|
|
374 |
with gr.TabItem("生成&发布"):
|
375 |
gr.Markdown(f"{description}")
|
376 |
with gr.Row(): # 行排列
|
@@ -398,6 +401,7 @@ with gr.Blocks() as demo:
|
|
398 |
with gr.TabItem("todo内嵌浏览器pyqt html"):
|
399 |
mp = gr.HTML(html, elem_id="coords", visible=True)
|
400 |
pass
|
|
|
401 |
pre_img_bt.click(fn=generate_image, inputs=[input_image, title,a,b,c,d,e,f,
|
402 |
font_title, sz1, title_x, title_y, color1,
|
403 |
font_subtt, sz2, subtt_x, subtt_y, color2,
|
@@ -427,9 +431,6 @@ with gr.Blocks() as demo:
|
|
427 |
# 绑定clear点击函数
|
428 |
# clear.click(fn=clear_input, inputs=[], outputs=[context, question, answer, score])
|
429 |
|
430 |
-
input_image, font_title, sz1, title_x, title_y, color1, \
|
431 |
-
font_subtt, sz2, subtt_x, subtt_y, color2, \
|
432 |
-
font_txt, sz3, txt_x, color3, bac_color = load_template("专有")
|
433 |
|
434 |
if __name__ == "__main__":
|
435 |
demo.queue().launch()
|
|
|
371 |
|
372 |
# mv_files = gr.Files(movies, label="movies")
|
373 |
# img_files = gr.Files(imgs_cur, label="movie_imgs")
|
374 |
+
input_image, font_title, sz1, title_x, title_y, color1, \
|
375 |
+
font_subtt, sz2, subtt_x, subtt_y, color2, \
|
376 |
+
font_txt, sz3, txt_x, color3, bac_color = load_template("专有")
|
377 |
with gr.TabItem("生成&发布"):
|
378 |
gr.Markdown(f"{description}")
|
379 |
with gr.Row(): # 行排列
|
|
|
401 |
with gr.TabItem("todo内嵌浏览器pyqt html"):
|
402 |
mp = gr.HTML(html, elem_id="coords", visible=True)
|
403 |
pass
|
404 |
+
|
405 |
pre_img_bt.click(fn=generate_image, inputs=[input_image, title,a,b,c,d,e,f,
|
406 |
font_title, sz1, title_x, title_y, color1,
|
407 |
font_subtt, sz2, subtt_x, subtt_y, color2,
|
|
|
431 |
# 绑定clear点击函数
|
432 |
# clear.click(fn=clear_input, inputs=[], outputs=[context, question, answer, score])
|
433 |
|
|
|
|
|
|
|
434 |
|
435 |
if __name__ == "__main__":
|
436 |
demo.queue().launch()
|