Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,10 +39,10 @@ def predict(image, text):
|
|
39 |
return response
|
40 |
|
41 |
# Whisper STT optional model
|
42 |
-
|
43 |
-
def transcribe_audio(audio):
|
44 |
-
result = whisper.transcribe(audio, model="base")
|
45 |
-
return result["text"]
|
46 |
|
47 |
# Example photos and prompts
|
48 |
example_images = [
|
|
|
39 |
return response
|
40 |
|
41 |
# Whisper STT optional model
|
42 |
+
#@spaces.GPU
|
43 |
+
#def transcribe_audio(audio):
|
44 |
+
# result = whisper.transcribe(audio, model="base")
|
45 |
+
# return result["text"]
|
46 |
|
47 |
# Example photos and prompts
|
48 |
example_images = [
|