Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def process_audio(audio_file):
|
|
| 58 |
entities=[(ent.text, ent.label_) for ent in doc.ents] if doc is not None else []
|
| 59 |
|
| 60 |
return {
|
| 61 |
-
"Transcription (
|
| 62 |
"AI Response (T5)": deepseek_response,# ไฟฎๆน็บ T5 ๅๆไปฅ้ฟๅ
่ๅไพไธๅๆญฅ
|
| 63 |
"Extracted Entities (spaCy)": entities}
|
| 64 |
|
|
@@ -75,7 +75,7 @@ with gr.Blocks() as app:
|
|
| 75 |
|
| 76 |
|
| 77 |
with gr.Row():
|
| 78 |
-
audio_input=gr.Audio(
|
| 79 |
output_text=gr.JSON(label="็ตๆ")
|
| 80 |
|
| 81 |
|
|
|
|
| 58 |
entities=[(ent.text, ent.label_) for ent in doc.ents] if doc is not None else []
|
| 59 |
|
| 60 |
return {
|
| 61 |
+
"Transcription (Whister)": result,
|
| 62 |
"AI Response (T5)": deepseek_response,# ไฟฎๆน็บ T5 ๅๆไปฅ้ฟๅ
่ๅไพไธๅๆญฅ
|
| 63 |
"Extracted Entities (spaCy)": entities}
|
| 64 |
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
with gr.Row():
|
| 78 |
+
audio_input=gr.Audio(type="filepath", label="ไธๅณ่ช้ณ") # ไฟฎๆญฃไบ้ไธ่ก๏ผไปฅไฝฟ็จๆไปถไธๅณๆนๅผใ
|
| 79 |
output_text=gr.JSON(label="็ตๆ")
|
| 80 |
|
| 81 |
|