muryshev commited on
Commit
2e45cae
1 Parent(s): bcd9bad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def search_route():
50
  data = request.get_json()
51
  prompt = data.get('prompt', '')
52
  #truncated_prompt = prompt[:32768]
53
- return Response(generate(prompt), content_type='text/plain', status=200, direct_passthrough=True)
54
 
55
  if __name__ == '__main__':
56
  app.run(debug=False, host='0.0.0.0', port=7860)
 
50
  data = request.get_json()
51
  prompt = data.get('prompt', '')
52
  #truncated_prompt = prompt[:32768]
53
+ return Response(generate(prompt), content_type='text/plain; charset=utf-8', status=200, direct_passthrough=True)
54
 
55
  if __name__ == '__main__':
56
  app.run(debug=False, host='0.0.0.0', port=7860)