elgamous commited on
Commit
4aeab18
1 Parent(s): d35b39f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,9 +3,9 @@ import mediapipe as mp
3
  #from transformers import pipeline
4
 
5
  base_options = mp.tasks.BaseOptions(model_asset_path="classifier.tflite")
6
- options = mp.tasks.text.TextClassifierOptions(base_options=base_options)
7
  with mp.tasks.text.TextClassifier.create_from_options(options) as classifier:
8
- text = st.text_area("enter some text")
9
  result = classifier.classify(text)
10
 
11
  category = result.classifications[0].categories[0]
 
3
  #from transformers import pipeline
4
 
5
  base_options = mp.tasks.BaseOptions(model_asset_path="classifier.tflite")
6
+ options = mp.tasks.text.TextClassifierOptions(base_options=base_options)
7
  with mp.tasks.text.TextClassifier.create_from_options(options) as classifier:
8
+ text = st.text_area("enter some text")
9
  result = classifier.classify(text)
10
 
11
  category = result.classifications[0].categories[0]