Rooni commited on
Commit
f7102bc
1 Parent(s): 5669f71

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
- 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) {
 
61
  'Content-Type': 'application/json',
62
  },
63
  });
64
+ const 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) {