Dibiddo commited on
Commit
3e874e1
ยท
verified ยท
1 Parent(s): bcd57fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 (Whisper)": result,
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(source="microphone", type="filepath", label="ไธŠๅ‚ณ่ชž้Ÿณ")
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