HinaCortus commited on
Commit
d8f90a3
1 Parent(s): 568df48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -38,7 +38,8 @@ def TopicClassification(payload: TextIn):
38
  loaded_model = AutoModelForSequenceClassification.from_pretrained(model_name)
39
 
40
  nlp = TextClassificationPipeline(model=loaded_model, tokenizer=loaded_tokenizer)
41
-
 
42
  text = re.sub(r'[!@#$(),\n"%^*?\:;~`0-9]', " ", payload.text)
43
  text = re.sub(r"[[]]", " ", text)
44
  text = text.lower()
 
38
  loaded_model = AutoModelForSequenceClassification.from_pretrained(model_name)
39
 
40
  nlp = TextClassificationPipeline(model=loaded_model, tokenizer=loaded_tokenizer)
41
+
42
+ print(payload.text)
43
  text = re.sub(r'[!@#$(),\n"%^*?\:;~`0-9]', " ", payload.text)
44
  text = re.sub(r"[[]]", " ", text)
45
  text = text.lower()