Update server.js
Browse files
server.js
CHANGED
|
@@ -53,13 +53,8 @@ app.post('/upload', upload.single('file'), async (req, res) => {
|
|
| 53 |
|
| 54 |
|
| 55 |
// Forward the response from the Whisper API back to the iOS app
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
res.status(whisperResponse.status).json(jsonResponse);
|
| 59 |
-
} catch (error) {
|
| 60 |
-
console.error('Error parsing JSON response:', error);
|
| 61 |
-
res.status(500).json({ error: 'Error parsing JSON response' });
|
| 62 |
-
}
|
| 63 |
|
| 64 |
} catch (error) {
|
| 65 |
console.error(error);
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
// Forward the response from the Whisper API back to the iOS app
|
| 56 |
+
res.status(whisperResponse.status).json(whisperResponse.data);
|
| 57 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
} catch (error) {
|
| 60 |
console.error(error);
|