Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -293,10 +293,10 @@ with gr.Blocks(css=css) as demo:
|
|
293 |
with gr.Column():
|
294 |
video_inp = gr.Video(label="video_input")
|
295 |
|
296 |
-
gr.Markdown("
|
297 |
-
with gr.Row():
|
298 |
-
|
299 |
-
|
300 |
|
301 |
chatbot = gr.Chatbot(elem_id="chatbox")
|
302 |
input_message = gr.Textbox(show_label=False, placeholder="输入提问内容并按回车", visible=True)
|
@@ -310,7 +310,7 @@ with gr.Blocks(css=css) as demo:
|
|
310 |
btn_clear_conversation = gr.Button("🔃 开始新的对话")
|
311 |
|
312 |
with gr.Column():
|
313 |
-
vlog_btn = gr.Button("
|
314 |
vlog_outp = gr.Textbox(label="Document output", lines=60)
|
315 |
total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
316 |
|
@@ -330,7 +330,7 @@ with gr.Blocks(css=css) as demo:
|
|
330 |
input_message_debate.submit(submit_message_debate, [input_message_debate, state], [input_message_debate, chatbot])
|
331 |
btn_clear_conversation.click(clear_conversation, [], [input_message, input_message_debate, video_inp, chatbot, vlog_outp, state])
|
332 |
vlog_btn.click(vlog_fn, [video_inp], [vlog_outp])
|
333 |
-
vidsub_btn.click(subvid_fn, [video_id], [video_inp])
|
334 |
|
335 |
# 第三个标签页
|
336 |
with gr.TabItem("第三步(再次测试)"):
|
|
|
293 |
with gr.Column():
|
294 |
video_inp = gr.Video(label="video_input")
|
295 |
|
296 |
+
gr.Markdown("请点击页面最左下方视频", elem_id="hint")
|
297 |
+
#with gr.Row():
|
298 |
+
# video_id = gr.Textbox(value="", placeholder="Download video url", show_label=False)
|
299 |
+
# vidsub_btn = gr.Button("上传网站视频")
|
300 |
|
301 |
chatbot = gr.Chatbot(elem_id="chatbox")
|
302 |
input_message = gr.Textbox(show_label=False, placeholder="输入提问内容并按回车", visible=True)
|
|
|
310 |
btn_clear_conversation = gr.Button("🔃 开始新的对话")
|
311 |
|
312 |
with gr.Column():
|
313 |
+
vlog_btn = gr.Button("点击此处,查看视频日志(请耐心等待60左右)")
|
314 |
vlog_outp = gr.Textbox(label="Document output", lines=60)
|
315 |
total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
316 |
|
|
|
330 |
input_message_debate.submit(submit_message_debate, [input_message_debate, state], [input_message_debate, chatbot])
|
331 |
btn_clear_conversation.click(clear_conversation, [], [input_message, input_message_debate, video_inp, chatbot, vlog_outp, state])
|
332 |
vlog_btn.click(vlog_fn, [video_inp], [vlog_outp])
|
333 |
+
#vidsub_btn.click(subvid_fn, [video_id], [video_inp])
|
334 |
|
335 |
# 第三个标签页
|
336 |
with gr.TabItem("第三步(再次测试)"):
|