Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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")
|