Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
# Initialize sentiment_analysis as None
|
@@ -42,4 +42,4 @@ iface = gr.Interface(fn=predict_sentiment,
|
|
42 |
examples=examples)
|
43 |
|
44 |
if __name__ == "__main__":
|
45 |
-
iface.launch()
|
|
|
1 |
+
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
2 |
import gradio as gr
|
3 |
|
4 |
# Initialize sentiment_analysis as None
|
|
|
42 |
examples=examples)
|
43 |
|
44 |
if __name__ == "__main__":
|
45 |
+
iface.launch()
|