Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,9 @@ def evaluate_sign_language(user_video, standard_video_option):
|
|
51 |
new_path = tmpdir + "/user.mp4"
|
52 |
shutil.copy(user_video, new_path)
|
53 |
shutil.copy(videos[standard_video_option], tmpdir + "/standard.mp4")
|
54 |
-
|
|
|
|
|
55 |
test, standard = user_video, videos[standard_video_option]
|
56 |
score, final_merged_intervals, comments = eval(test, standard, tmpdir)
|
57 |
|
@@ -108,7 +110,7 @@ def cleanup_temp_dir(tmp_dir):
|
|
108 |
return "临时目录已清理"
|
109 |
return "没有临时目录需要清理"
|
110 |
|
111 |
-
install()
|
112 |
font = ["Heiti SC", "FangSong"]
|
113 |
title = """<h1 style="text-align: center;">
|
114 |
<div style="width: 1.4em; height: 1.4em; display: inline-block;"><img src="https://github.com/ZiyuGuo99/ZiyuGuo99.github.io/blob/main/assets/img/sl.png?raw=true" style='width: 100%; height: 100%; object-fit: contain;' /></div>
|
@@ -168,4 +170,5 @@ with gr.Blocks(
|
|
168 |
outputs=None
|
169 |
)
|
170 |
|
171 |
-
app.launch(share=True)
|
|
|
|
51 |
new_path = tmpdir + "/user.mp4"
|
52 |
shutil.copy(user_video, new_path)
|
53 |
shutil.copy(videos[standard_video_option], tmpdir + "/standard.mp4")
|
54 |
+
print("Copy User Video to:", new_path)
|
55 |
+
print("Copy Standard Video to:", tmpdir + "/standard.mp4")
|
56 |
+
|
57 |
test, standard = user_video, videos[standard_video_option]
|
58 |
score, final_merged_intervals, comments = eval(test, standard, tmpdir)
|
59 |
|
|
|
110 |
return "临时目录已清理"
|
111 |
return "没有临时目录需要清理"
|
112 |
|
113 |
+
# install()
|
114 |
font = ["Heiti SC", "FangSong"]
|
115 |
title = """<h1 style="text-align: center;">
|
116 |
<div style="width: 1.4em; height: 1.4em; display: inline-block;"><img src="https://github.com/ZiyuGuo99/ZiyuGuo99.github.io/blob/main/assets/img/sl.png?raw=true" style='width: 100%; height: 100%; object-fit: contain;' /></div>
|
|
|
170 |
outputs=None
|
171 |
)
|
172 |
|
173 |
+
app.launch(share=True)
|
174 |
+
|