llepogam commited on
Commit
bcf10bc
·
1 Parent(s): 1ab42f8

update the preprocessing step

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -102,7 +102,11 @@ async def predict(predictionFeatures: PredictionFeatures):
102
  """
103
 
104
  # First preprocess the text directly
105
- preprocessed_result = await preprocess_text(predictionFeatures.Text)
 
 
 
 
106
 
107
  # Use the preprocessed text for prediction
108
  list_text = [preprocessed_result['text_clean']['0']]
 
102
  """
103
 
104
  # First preprocess the text directly
105
+ text_to_preprocess = {
106
+ "tweet": predictionFeatures.Text
107
+ }
108
+
109
+ preprocessed_result = await preprocess_text(text_to_preprocess)
110
 
111
  # Use the preprocessed text for prediction
112
  list_text = [preprocessed_result['text_clean']['0']]