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