Spaces:
Running
Running
fistyee
commited on
Commit
·
d7e53f4
1
Parent(s):
d4a88e9
add
Browse files
app.py
CHANGED
@@ -55,13 +55,13 @@ def process_input(text=None, images=None, audio=None, video=None):
|
|
55 |
audio_path = audio.name
|
56 |
result,title = evaluation_processor.process_evaluation(audio_path, is_video=False)
|
57 |
prompt += f'''如果有曲名{title},请你根据这首歌的名字作者,并且'''
|
58 |
-
prompt += f'''1.
|
59 |
"eva_all":综合得分
|
60 |
"eva_completion":完整性
|
61 |
"eva_note":按键
|
62 |
"eva_stability":稳定性
|
63 |
"eva_tempo_sync":节奏
|
64 |
-
|
65 |
|
66 |
except Exception as e:
|
67 |
return f"Error processing audio: {e}", None
|
@@ -72,13 +72,13 @@ def process_input(text=None, images=None, audio=None, video=None):
|
|
72 |
video_path = video.name
|
73 |
result,title = evaluation_processor.process_evaluation(video_path, is_video=True)
|
74 |
prompt += f'''如果有曲名{title},请你根据这首歌的名字作者,并且'''
|
75 |
-
prompt += f'''
|
76 |
"eva_all":综合得分
|
77 |
"eva_completion":完整性
|
78 |
"eva_note":按键
|
79 |
"eva_stability":稳定性
|
80 |
"eva_tempo_sync":节奏
|
81 |
-
|
82 |
|
83 |
except Exception as e:
|
84 |
return f"Error processing video: {e}", None
|
|
|
55 |
audio_path = audio.name
|
56 |
result,title = evaluation_processor.process_evaluation(audio_path, is_video=False)
|
57 |
prompt += f'''如果有曲名{title},请你根据这首歌的名字作者,并且'''
|
58 |
+
prompt += f'''1. 请你从
|
59 |
"eva_all":综合得分
|
60 |
"eva_completion":完整性
|
61 |
"eva_note":按键
|
62 |
"eva_stability":稳定性
|
63 |
"eva_tempo_sync":节奏
|
64 |
+
几个方面评价一下下面这首曲子演奏的结果, 不用提及键的英文,使用中文2.输出'result_path'里面的值,里面是详细评测内容的地址. 曲子为 {result}'''
|
65 |
|
66 |
except Exception as e:
|
67 |
return f"Error processing audio: {e}", None
|
|
|
72 |
video_path = video.name
|
73 |
result,title = evaluation_processor.process_evaluation(video_path, is_video=True)
|
74 |
prompt += f'''如果有曲名{title},请你根据这首歌的名字作者,并且'''
|
75 |
+
prompt += f'''1.请你从
|
76 |
"eva_all":综合得分
|
77 |
"eva_completion":完整性
|
78 |
"eva_note":按键
|
79 |
"eva_stability":稳定性
|
80 |
"eva_tempo_sync":节奏
|
81 |
+
几个方面评价一下下面这首曲子演奏的结果, 不用提及键的英文,使用中文2.输出'result_path'里面的值,里面是详细评测内容的地址: 曲子为 {result}'''
|
82 |
|
83 |
except Exception as e:
|
84 |
return f"Error processing video: {e}", None
|