Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,8 @@ def imageMode(image, question):
|
|
60 |
return "In progress"
|
61 |
|
62 |
def audioMode(audio):
|
|
|
|
|
63 |
input_features = processor_audio(audio, return_tensors="pt").input_features
|
64 |
predicted_ids = model_audio.generate(input_features)
|
65 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
|
|
|
60 |
return "In progress"
|
61 |
|
62 |
def audioMode(audio):
|
63 |
+
print('---------type of audio--------------')
|
64 |
+
print(type(audio))
|
65 |
input_features = processor_audio(audio, return_tensors="pt").input_features
|
66 |
predicted_ids = model_audio.generate(input_features)
|
67 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
|