Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def search_route():
|
|
| 52 |
data = request.get_json()
|
| 53 |
prompt = data.get('prompt', '')
|
| 54 |
#truncated_prompt = prompt[:32768]
|
| 55 |
-
return Response(generate(prompt), content_type='text/plain; charset=utf-8', status=200, direct_passthrough=True)
|
| 56 |
|
| 57 |
if __name__ == '__main__':
|
| 58 |
app.run(debug=False, host='0.0.0.0', port=7860)
|
|
|
|
| 52 |
data = request.get_json()
|
| 53 |
prompt = data.get('prompt', '')
|
| 54 |
#truncated_prompt = prompt[:32768]
|
| 55 |
+
return Response(generate(prompt[:52768]), content_type='text/plain; charset=utf-8', status=200, direct_passthrough=True)
|
| 56 |
|
| 57 |
if __name__ == '__main__':
|
| 58 |
app.run(debug=False, host='0.0.0.0', port=7860)
|