muryshev commited on
Commit
ab51332
1 Parent(s): b58e42f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def health():
46
  def search_route():
47
  data = request.get_json()
48
  prompt = data.get('prompt', '')
49
- truncated_prompt = original_prompt[:32768]
50
  return Response(generate(truncated_prompt), content_type='text/plain', status=200, direct_passthrough=True)
51
 
52
  if __name__ == '__main__':
 
46
  def search_route():
47
  data = request.get_json()
48
  prompt = data.get('prompt', '')
49
+ truncated_prompt = prompt[:32768]
50
  return Response(generate(truncated_prompt), content_type='text/plain', status=200, direct_passthrough=True)
51
 
52
  if __name__ == '__main__':