Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from utils import download_video
|
|
12 |
#prompt_templates = {"Default ChatGPT": ""}
|
13 |
|
14 |
parser = argparse.ArgumentParser()
|
15 |
-
parser.add_argument('--video_path', default='./BV11H4y1F7uH.mp4')
|
16 |
parser.add_argument('--alpha', default=10, type=int, help='Determine the maximum segment number for KTS algorithm, the larger the value, the fewer segments.')
|
17 |
parser.add_argument('--beta', default=1, type=int, help='The smallest time gap between successive clips, in seconds.')
|
18 |
parser.add_argument('--data_dir', default='./', type=str, help='Directory for saving videos and logs.')
|
@@ -208,7 +208,7 @@ with gr.Blocks(css=css) as demo:
|
|
208 |
with gr.TabItem("第一步(观看前测试)"):
|
209 |
gr.Markdown("""## 在观看视频前,我们先进行一个简单的测试: 由和视频内容相关的六道题目组成,
|
210 |
请访问:[正则化](https://www.wjx.cn/vm/PBZtmpe.aspx#) 进行答题。""",
|
211 |
-
elem_id="header")
|
212 |
# 第二个标签页
|
213 |
with gr.TabItem("第二步(VLog使用)"):
|
214 |
state = gr.State(get_empty_state())
|
@@ -226,7 +226,6 @@ with gr.Blocks(css=css) as demo:
|
|
226 |
examples = gr.Examples(
|
227 |
examples=[
|
228 |
["./BV11H4y1F7uH-P50.mp4"],
|
229 |
-
#["./BV11H4y1F7uH-P58.mp4"],
|
230 |
],
|
231 |
inputs=[video_inp],
|
232 |
)
|
@@ -267,7 +266,7 @@ with gr.Blocks(css=css) as demo:
|
|
267 |
with gr.TabItem("第三步(观后测试)"):
|
268 |
gr.Markdown("""## 在观看视频后,我们再进行一个简单的测试: 也是由和视频内容相关的十道题目组成,
|
269 |
请访问:[正则化](https://www.wjx.cn/vm/m4xhdjd.aspx#) 进行答题。""",
|
270 |
-
elem_id="header")
|
271 |
|
272 |
|
273 |
demo.load(queue=False)
|
|
|
12 |
#prompt_templates = {"Default ChatGPT": ""}
|
13 |
|
14 |
parser = argparse.ArgumentParser()
|
15 |
+
parser.add_argument('--video_path', default='./BV11H4y1F7uH-P50.mp4')
|
16 |
parser.add_argument('--alpha', default=10, type=int, help='Determine the maximum segment number for KTS algorithm, the larger the value, the fewer segments.')
|
17 |
parser.add_argument('--beta', default=1, type=int, help='The smallest time gap between successive clips, in seconds.')
|
18 |
parser.add_argument('--data_dir', default='./', type=str, help='Directory for saving videos and logs.')
|
|
|
208 |
with gr.TabItem("第一步(观看前测试)"):
|
209 |
gr.Markdown("""## 在观看视频前,我们先进行一个简单的测试: 由和视频内容相关的六道题目组成,
|
210 |
请访问:[正则化](https://www.wjx.cn/vm/PBZtmpe.aspx#) 进行答题。""",
|
211 |
+
elem_id="header")
|
212 |
# 第二个标签页
|
213 |
with gr.TabItem("第二步(VLog使用)"):
|
214 |
state = gr.State(get_empty_state())
|
|
|
226 |
examples = gr.Examples(
|
227 |
examples=[
|
228 |
["./BV11H4y1F7uH-P50.mp4"],
|
|
|
229 |
],
|
230 |
inputs=[video_inp],
|
231 |
)
|
|
|
266 |
with gr.TabItem("第三步(观后测试)"):
|
267 |
gr.Markdown("""## 在观看视频后,我们再进行一个简单的测试: 也是由和视频内容相关的十道题目组成,
|
268 |
请访问:[正则化](https://www.wjx.cn/vm/m4xhdjd.aspx#) 进行答题。""",
|
269 |
+
elem_id="header")
|
270 |
|
271 |
|
272 |
demo.load(queue=False)
|