Spaces:
Runtime error
Runtime error
tomxxie
commited on
Commit
·
74be1c1
1
Parent(s):
2defe04
适配zeroGPU
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ def init_model_my():
|
|
| 69 |
print(model)
|
| 70 |
return model, tokenizer
|
| 71 |
|
| 72 |
-
model, tokenizer = init_model_my()
|
| 73 |
print("model init success")
|
| 74 |
def do_resample(input_wav_path, output_wav_path):
|
| 75 |
""""""
|
|
@@ -126,8 +126,8 @@ def true_decode_fuc(input_wav_path, input_prompt):
|
|
| 126 |
def do_decode(input_wav_path, input_prompt):
|
| 127 |
print(f'input_wav_path= {input_wav_path}, input_prompt= {input_prompt}')
|
| 128 |
# 省略处理逻辑
|
| 129 |
-
output_res= true_decode_fuc(input_wav_path, input_prompt)
|
| 130 |
-
|
| 131 |
return output_res
|
| 132 |
|
| 133 |
def save_to_jsonl(if_correct, wav, prompt, res):
|
|
|
|
| 69 |
print(model)
|
| 70 |
return model, tokenizer
|
| 71 |
|
| 72 |
+
# model, tokenizer = init_model_my()
|
| 73 |
print("model init success")
|
| 74 |
def do_resample(input_wav_path, output_wav_path):
|
| 75 |
""""""
|
|
|
|
| 126 |
def do_decode(input_wav_path, input_prompt):
|
| 127 |
print(f'input_wav_path= {input_wav_path}, input_prompt= {input_prompt}')
|
| 128 |
# 省略处理逻辑
|
| 129 |
+
# output_res= true_decode_fuc(input_wav_path, input_prompt)
|
| 130 |
+
output_res = f"耿雪龙哈哈:测试结果, input_wav_path= {input_wav_path}, input_prompt= {input_prompt}"
|
| 131 |
return output_res
|
| 132 |
|
| 133 |
def save_to_jsonl(if_correct, wav, prompt, res):
|