Spaces:
Build error
Build error
Kartikeyssj2
commited on
Commit
•
3cc7981
1
Parent(s):
f2601c1
Update main.py
Browse files
main.py
CHANGED
@@ -126,8 +126,9 @@ async def upload_audio(file: UploadFile = File(...)):
|
|
126 |
|
127 |
# Perform inference
|
128 |
print("Performing inference with Wav2Vec2 model...")
|
129 |
-
|
130 |
-
logits =
|
|
|
131 |
print("Inference complete. Shape of logits:", logits.shape)
|
132 |
|
133 |
# Get predictions
|
|
|
126 |
|
127 |
# Perform inference
|
128 |
print("Performing inference with Wav2Vec2 model...")
|
129 |
+
|
130 |
+
logits = model(input_values).logits
|
131 |
+
|
132 |
print("Inference complete. Shape of logits:", logits.shape)
|
133 |
|
134 |
# Get predictions
|