s3nh commited on
Commit
56a6f2e
·
verified ·
1 Parent(s): 638907a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ def translate(audio):
134
  transcription = whisper_model.transcribe(audio, language="pl")
135
  return transcription["text"]
136
 
137
-
138
  def predict(audio, _chatbot, _task_history):
139
  # Użyj funkcji translate, aby przekształcić audio w tekst
140
  _query = translate(audio)
 
134
  transcription = whisper_model.transcribe(audio, language="pl")
135
  return transcription["text"]
136
 
137
+ @spaces.GPU
138
  def predict(audio, _chatbot, _task_history):
139
  # Użyj funkcji translate, aby przekształcić audio w tekst
140
  _query = translate(audio)