Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -292,13 +292,6 @@ with gr.Blocks(css=css) as demo:
|
|
292 |
with gr.Row():
|
293 |
with gr.Column():
|
294 |
video_inp = gr.Video(label="video_input")
|
295 |
-
gr.Markdown("请点击下方视频(任意选择一个视频进行播放)", elem_id="hint")
|
296 |
-
examples = gr.Examples(
|
297 |
-
examples=[
|
298 |
-
["BV11H4y1F7uH.mp4"],
|
299 |
-
],
|
300 |
-
inputs=[video_inp],
|
301 |
-
)
|
302 |
|
303 |
gr.Markdown("请在下方输入需要播放的视频完整网址, *e.g.* *B站地址*", elem_id="hint")
|
304 |
with gr.Row():
|
@@ -306,12 +299,12 @@ with gr.Blocks(css=css) as demo:
|
|
306 |
vidsub_btn = gr.Button("上传网站视频")
|
307 |
|
308 |
chatbot = gr.Chatbot(elem_id="chatbox")
|
309 |
-
input_message = gr.Textbox(show_label=False, placeholder="
|
310 |
btn_submit = gr.Button("提问视频内容")
|
311 |
|
312 |
gr.Markdown("如果对上面的回答不满意,请在下方输入需要辩论的问题, *e.g.* *方差越小越好?*", elem_id="hint")
|
313 |
#chatbot_debate = gr.Chatbot(elem_id="chatbox")
|
314 |
-
input_message_debate = gr.Textbox(show_label=False, placeholder="
|
315 |
btn_submit_debate = gr.Button("发起问题辩论")
|
316 |
|
317 |
btn_clear_conversation = gr.Button("🔃 开始新的对话")
|
@@ -321,6 +314,14 @@ with gr.Blocks(css=css) as demo:
|
|
321 |
vlog_outp = gr.Textbox(label="Document output", lines=60)
|
322 |
total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
gr.HTML('''<br><br><br><center>You can duplicate this Space to skip the queue:<a href="https://huggingface.co/spaces/anzorq/chatgpt-demo?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a><br></center>''')
|
325 |
|
326 |
btn_submit.click(submit_message, [input_message, state], [input_message, chatbot])
|
|
|
292 |
with gr.Row():
|
293 |
with gr.Column():
|
294 |
video_inp = gr.Video(label="video_input")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
|
296 |
gr.Markdown("请在下方输入需要播放的视频完整网址, *e.g.* *B站地址*", elem_id="hint")
|
297 |
with gr.Row():
|
|
|
299 |
vidsub_btn = gr.Button("上传网站视频")
|
300 |
|
301 |
chatbot = gr.Chatbot(elem_id="chatbox")
|
302 |
+
input_message = gr.Textbox(show_label=False, placeholder="输入文字并按回车", visible=True).style(container=False)
|
303 |
btn_submit = gr.Button("提问视频内容")
|
304 |
|
305 |
gr.Markdown("如果对上面的回答不满意,请在下方输入需要辩论的问题, *e.g.* *方差越小越好?*", elem_id="hint")
|
306 |
#chatbot_debate = gr.Chatbot(elem_id="chatbox")
|
307 |
+
input_message_debate = gr.Textbox(show_label=False, placeholder="输入文字并按回车", visible=True).style(container=False)
|
308 |
btn_submit_debate = gr.Button("发起问题辩论")
|
309 |
|
310 |
btn_clear_conversation = gr.Button("🔃 开始新的对话")
|
|
|
314 |
vlog_outp = gr.Textbox(label="Document output", lines=60)
|
315 |
total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
316 |
|
317 |
+
gr.Markdown("请点击下方视频(任意选择一个视频进行播放)", elem_id="hint")
|
318 |
+
examples = gr.Examples(
|
319 |
+
examples=[
|
320 |
+
["./BV11H4y1F7uH.mp4"],
|
321 |
+
],
|
322 |
+
inputs=[video_inp],
|
323 |
+
)
|
324 |
+
|
325 |
gr.HTML('''<br><br><br><center>You can duplicate this Space to skip the queue:<a href="https://huggingface.co/spaces/anzorq/chatgpt-demo?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a><br></center>''')
|
326 |
|
327 |
btn_submit.click(submit_message, [input_message, state], [input_message, chatbot])
|