rayanAdeeb commited on
Commit
e69a71f
·
verified ·
1 Parent(s): 4635603

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
5
  pipe = pipeline("text-classification", model="CAMeL-Lab/bert-base-arabic-camelbert-mix-sentiment")
6
 
7
  def analyze(text):
8
- result = pipe(text)
9
  return result
10
 
11
  demo = gr.Interface(fn=analyze, inputs="text", outputs="text")
 
5
  pipe = pipeline("text-classification", model="CAMeL-Lab/bert-base-arabic-camelbert-mix-sentiment")
6
 
7
  def analyze(text):
8
+ result = pipe(text)
9
  return result
10
 
11
  demo = gr.Interface(fn=analyze, inputs="text", outputs="text")