Frenchizer commited on
Commit
04e2cd0
·
verified ·
1 Parent(s): eafa24d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, result
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: