Spaces:
Running
Running
fistyee
commited on
Commit
·
a1dd7f4
1
Parent(s):
5f2f6ea
rompt
Browse files
__pycache__/evaluation_processor.cpython-311.pyc
CHANGED
Binary files a/__pycache__/evaluation_processor.cpython-311.pyc and b/__pycache__/evaluation_processor.cpython-311.pyc differ
|
|
app.py
CHANGED
@@ -25,7 +25,7 @@ evaluation_processor = EvaluationProcessor(api_key)
|
|
25 |
# 定义处理函数
|
26 |
def process_input(text=None, images=None, audio=None, video=None):
|
27 |
# 创建GPT请求的描述
|
28 |
-
system = "1
|
29 |
messages = [{"role": "system", "content": system}]
|
30 |
prompt = ""
|
31 |
if text:
|
@@ -61,7 +61,7 @@ def process_input(text=None, images=None, audio=None, video=None):
|
|
61 |
"eva_note":按键
|
62 |
"eva_stability":稳定性
|
63 |
"eva_tempo_sync":节奏
|
64 |
-
几个方面评价一下下面这首曲子演奏的结果,
|
65 |
result_path = result.get('result_path', '')
|
66 |
|
67 |
|
@@ -80,7 +80,7 @@ def process_input(text=None, images=None, audio=None, video=None):
|
|
80 |
"eva_note":按键
|
81 |
"eva_stability":稳定性
|
82 |
"eva_tempo_sync":节奏
|
83 |
-
几个方面评价一下下面这首曲子演奏的结果,
|
84 |
result_path = result.get('result_path', '')
|
85 |
|
86 |
except Exception as e:
|
|
|
25 |
# 定义处理函数
|
26 |
def process_input(text=None, images=None, audio=None, video=None):
|
27 |
# 创建GPT请求的描述
|
28 |
+
system = "1.你是一个音乐专家,只能回答音乐知识,和打招呼,回复的内容为普通文本格式,不用任何markdown符号如加粗等。如果提供的乐谱是abc记谱法,则回复时不要用abc记谱法,需要转换为传统的普通记谱法使用专业词汇进行回答问题\n2.你将根据下面指令回答问题,但是不能违反第一条指令,也不能在回复中提及。"
|
29 |
messages = [{"role": "system", "content": system}]
|
30 |
prompt = ""
|
31 |
if text:
|
|
|
61 |
"eva_note":按键
|
62 |
"eva_stability":稳定性
|
63 |
"eva_tempo_sync":节奏
|
64 |
+
几个方面评价一下下面这首曲子演奏的结果, 不用提及键的英文,只使用中文,曲子为 {result}'''
|
65 |
result_path = result.get('result_path', '')
|
66 |
|
67 |
|
|
|
80 |
"eva_note":按键
|
81 |
"eva_stability":稳定性
|
82 |
"eva_tempo_sync":节奏
|
83 |
+
几个方面评价一下下面这首曲子演奏的结果, 不用提及键的英文,只使用中文,曲子为 {result}'''
|
84 |
result_path = result.get('result_path', '')
|
85 |
|
86 |
except Exception as e:
|