Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ def send_audio(audio):
|
|
28 |
|
29 |
response = requests.post(url, files=files, data=data)
|
30 |
response_json = response.json()
|
|
|
31 |
|
32 |
# Extract the translation part
|
33 |
translation = response_json.get('data', {}).get('translation', 'No translation available')
|
|
|
28 |
|
29 |
response = requests.post(url, files=files, data=data)
|
30 |
response_json = response.json()
|
31 |
+
return response_json
|
32 |
|
33 |
# Extract the translation part
|
34 |
translation = response_json.get('data', {}).get('translation', 'No translation available')
|