ardasen commited on
Commit
79d3e11
·
1 Parent(s): 66f6513

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -7
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
- try {
57
- const jsonResponse = JSON.parse(whisperResponse.data);
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);