Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|