Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|