Spaces:
unijoh
/
Runtime error

unijoh commited on
Commit
01236f6
1 Parent(s): da2d0cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -16,9 +16,11 @@ mms_upload_source_trans = gr.Audio(
16
  source="upload", type="filepath", label="Legg ljóðfílu upp", visible=False
17
  )
18
 
19
- # Modify the transcribe function to ensure it uses Faroese language
20
  def transcribe_faroese(audio):
21
- return transcribe(audio, language='fao')
 
 
22
 
23
  mms_transcribe = gr.Interface(
24
  fn=transcribe_faroese,
 
16
  source="upload", type="filepath", label="Legg ljóðfílu upp", visible=False
17
  )
18
 
19
+ # Assuming transcribe is correctly configured to use Faroese language internally
20
  def transcribe_faroese(audio):
21
+ # Modify this function based on how you set the language within transcribe
22
+ # This example assumes transcribe is globally configured to Faroese
23
+ return transcribe(audio)
24
 
25
  mms_transcribe = gr.Interface(
26
  fn=transcribe_faroese,