Kartikeyssj2 commited on
Commit
3cc7981
1 Parent(s): f2601c1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
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
- output = (model, input_values)
130
- logits = output.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