Spaces:
Sleeping
Sleeping
test2023h5
commited on
Commit
•
49f2fc5
1
Parent(s):
db6c710
Update main.py
Browse files
main.py
CHANGED
@@ -114,9 +114,9 @@ async def process_text(request: ProcessRequest):
|
|
114 |
#processed_text = request.text.lower()
|
115 |
processed_text = "predict(request.text, 1)"
|
116 |
elif request.method == 2:
|
117 |
-
processed_text = request.text[::-1] # 反转字符串
|
118 |
else:
|
119 |
-
processed_text = request.text
|
120 |
|
121 |
return {"original_text": request.text, "processed_text": processed_text, "method": request.method}
|
122 |
|
|
|
114 |
#processed_text = request.text.lower()
|
115 |
processed_text = "predict(request.text, 1)"
|
116 |
elif request.method == 2:
|
117 |
+
processed_text = "request.text[::-1]" # 反转字符串
|
118 |
else:
|
119 |
+
processed_text = "request.text"
|
120 |
|
121 |
return {"original_text": request.text, "processed_text": processed_text, "method": request.method}
|
122 |
|