fffiloni commited on
Commit
5116161
·
1 Parent(s): 5a55859

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -15,7 +15,8 @@ def infer(audio_input):
15
  )
16
  print(splt_result)
17
 
18
- # STEP 2 | Transcribe
 
19
  whisper_result = whisper_client.predict(
20
  splt_result, # str (filepath or URL to file) in 'inputs' Audio component
21
  "transcribe", # str in 'Task' Radio component
@@ -24,7 +25,9 @@ def infer(audio_input):
24
  )
25
  print(whisper_result)
26
 
27
- return splt_result, whisper_result[0]
 
 
28
 
29
  css = """
30
  #col-container {max-width: 510px; margin-left: auto; margin-right: auto;}
 
15
  )
16
  print(splt_result)
17
 
18
+ # STEP 2 | Transcribe
19
+ # TO-DO : handling errors if JAX demo queue is full
20
  whisper_result = whisper_client.predict(
21
  splt_result, # str (filepath or URL to file) in 'inputs' Audio component
22
  "transcribe", # str in 'Task' Radio component
 
25
  )
26
  print(whisper_result)
27
 
28
+ #return whisper_result[0] # if using JAX
29
+
30
+ return splt_result, whisper_result
31
 
32
  css = """
33
  #col-container {max-width: 510px; margin-left: auto; margin-right: auto;}