ardasen commited on
Commit
ff5dc36
·
1 Parent(s): 7c4d012

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -54,7 +54,7 @@ app.post('/upload', upload.single('file'), async (req, res) => {
54
  console.log('Whisper API Response:', whisperResponse.data);
55
 
56
  // Forward the response from the Whisper API back to the iOS app
57
- res.status(whisperResponse.status).json(whisperResponse.data);
58
 
59
  } catch (error) {
60
  console.error(error);
 
54
  console.log('Whisper API Response:', whisperResponse.data);
55
 
56
  // Forward the response from the Whisper API back to the iOS app
57
+ res.status(whisperResponse.status).send(whisperResponse.data);
58
 
59
  } catch (error) {
60
  console.error(error);