Spaces:
Sleeping
Sleeping
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def remove_extra_spaces(text):
|
|
42 |
Returns:
|
43 |
The string with extra spaces removed.
|
44 |
"""
|
45 |
-
return '
|
46 |
|
47 |
def query(text,API_URL):
|
48 |
payload={"inputs": text}
|
|
|
42 |
Returns:
|
43 |
The string with extra spaces removed.
|
44 |
"""
|
45 |
+
return ' '.join(text.split())
|
46 |
|
47 |
def query(text,API_URL):
|
48 |
payload={"inputs": text}
|