Update test_api.py
Browse files- 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 = "
|
| 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": ("
|
| 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)
|