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