TruthLens commited on
Commit
52c5bfe
Β·
verified Β·
1 Parent(s): 76a3113

Update test_api.py

Browse files
Files changed (1) hide show
  1. test_api.py +2 -2
test_api.py CHANGED
@@ -3,11 +3,11 @@ import requests
3
  RENDER_API_URL = "https://saivahini.onrender.com/process_audio"
4
 
5
  # βœ… Load a sample audio file (Make sure you upload `test.wav` in HF Spaces)
6
- audio_file_path = "test.wav"
7
 
8
  # βœ… Send a test request to Render API
9
  with open(audio_file_path, "rb") as audio_file:
10
- response = requests.post(RENDER_API_URL, files={"file": ("test.wav", audio_file, "audio/wav")})
11
 
12
  # βœ… Print the response
13
  print("Status Code:", response.status_code)
 
3
  RENDER_API_URL = "https://saivahini.onrender.com/process_audio"
4
 
5
  # βœ… Load a sample audio file (Make sure you upload `test.wav` in HF Spaces)
6
+ audio_file_path = "user_input.wav"
7
 
8
  # βœ… Send a test request to Render API
9
  with open(audio_file_path, "rb") as audio_file:
10
+ response = requests.post(RENDER_API_URL, files={"file": ("user_input.wav", audio_file, "audio/wav")})
11
 
12
  # βœ… Print the response
13
  print("Status Code:", response.status_code)