Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def preprocess_text(text: str):
|
|
| 59 |
# Extract potential tags (hashtags, mentions, etc.)
|
| 60 |
result["tags"] = [token.text for token in doc if token.text.startswith(('#', '@'))]
|
| 61 |
|
| 62 |
-
return text
|
| 63 |
|
| 64 |
# Gradio interface
|
| 65 |
with gr.Blocks() as demo:
|
|
|
|
| 59 |
# Extract potential tags (hashtags, mentions, etc.)
|
| 60 |
result["tags"] = [token.text for token in doc if token.text.startswith(('#', '@'))]
|
| 61 |
|
| 62 |
+
return text
|
| 63 |
|
| 64 |
# Gradio interface
|
| 65 |
with gr.Blocks() as demo:
|