Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,6 @@ def fx4(x):
|
|
44 |
def fx5():
|
45 |
return html_code
|
46 |
|
47 |
-
def fx6():
|
48 |
-
return ht_text
|
49 |
|
50 |
def fx7(input_path,input_path2):
|
51 |
input_img = load_img(input_path)
|
@@ -82,8 +80,7 @@ with demo:
|
|
82 |
pva_button = gr.Button("调用机器人对话>>")
|
83 |
pva_output=gr.HTML(label="机器人聊天窗口",show_label=True)
|
84 |
with gr.TabItem("Excel365测试"):
|
85 |
-
|
86 |
-
lk_output=gr.HTML(label="在线版演示",show_label=True)
|
87 |
with gr.TabItem("风格迁移"):
|
88 |
qy_input=[gr.Image(label="待转换图片",type="filepath"),gr.Image(label="风格图片",type="filepath")]
|
89 |
qy_output=gr.Image(type="auto", label="输出")
|
@@ -94,7 +91,6 @@ with demo:
|
|
94 |
dq_button.click(fx3, inputs=file_input, outputs=table_output)
|
95 |
tts_button.click(fx4, inputs=TS_input, outputs=audio_output)
|
96 |
pva_button.click(fx5, inputs=[],outputs=pva_output)
|
97 |
-
lk_button.click(fx6, inputs=[],outputs=lk_output)
|
98 |
qy_button.click(fx7,inputs=qy_input,outputs=qy_output)
|
99 |
|
100 |
demo.launch()
|
|
|
44 |
def fx5():
|
45 |
return html_code
|
46 |
|
|
|
|
|
47 |
|
48 |
def fx7(input_path,input_path2):
|
49 |
input_img = load_img(input_path)
|
|
|
80 |
pva_button = gr.Button("调用机器人对话>>")
|
81 |
pva_output=gr.HTML(label="机器人聊天窗口",show_label=True)
|
82 |
with gr.TabItem("Excel365测试"):
|
83 |
+
gr.output.HTML(value=ht_text,label="在线版演示",show_label=True)
|
|
|
84 |
with gr.TabItem("风格迁移"):
|
85 |
qy_input=[gr.Image(label="待转换图片",type="filepath"),gr.Image(label="风格图片",type="filepath")]
|
86 |
qy_output=gr.Image(type="auto", label="输出")
|
|
|
91 |
dq_button.click(fx3, inputs=file_input, outputs=table_output)
|
92 |
tts_button.click(fx4, inputs=TS_input, outputs=audio_output)
|
93 |
pva_button.click(fx5, inputs=[],outputs=pva_output)
|
|
|
94 |
qy_button.click(fx7,inputs=qy_input,outputs=qy_output)
|
95 |
|
96 |
demo.launch()
|