Spaces:
Runtime error
Runtime error
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def remove_extra_spaces(text):
|
|
| 18 |
Returns:
|
| 19 |
The string with extra spaces removed.
|
| 20 |
"""
|
| 21 |
-
return '
|
| 22 |
|
| 23 |
def query(text,API_URL):
|
| 24 |
payload={"inputs": text}
|
|
|
|
| 18 |
Returns:
|
| 19 |
The string with extra spaces removed.
|
| 20 |
"""
|
| 21 |
+
return ' '.join(text.split())
|
| 22 |
|
| 23 |
def query(text,API_URL):
|
| 24 |
payload={"inputs": text}
|