Spaces:
Running
Running
Update api.py
Browse files
api.py
CHANGED
@@ -38,7 +38,7 @@ def remove_unknown_symbols(text):
|
|
38 |
# Replace unknown symbols with an empty string
|
39 |
cleaned_text = re.sub(pattern, '', text)
|
40 |
# Truncate the text if its length exceeds 1020 characters
|
41 |
-
return cleaned_text[:1020]
|
42 |
|
43 |
# APIs
|
44 |
@app.get("/")
|
|
|
38 |
# Replace unknown symbols with an empty string
|
39 |
cleaned_text = re.sub(pattern, '', text)
|
40 |
# Truncate the text if its length exceeds 1020 characters
|
41 |
+
return cleaned_text # [:1020]
|
42 |
|
43 |
# APIs
|
44 |
@app.get("/")
|