Rooni commited on
Commit
214d387
1 Parent(s): 94d575b

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -61,7 +61,7 @@ app.post('/generate', generateLimiter, async (req, res) => {
61
  'Content-Type': 'application/json',
62
  },
63
  });
64
-
65
  console.log(data['choices'][0]['message']['content'].strip());
66
  res.json(data['choices'][0]['message']['content'].strip());
67
  } catch (error) {
 
61
  'Content-Type': 'application/json',
62
  },
63
  });
64
+ data = json.loads(response.text)
65
  console.log(data['choices'][0]['message']['content'].strip());
66
  res.json(data['choices'][0]['message']['content'].strip());
67
  } catch (error) {