Jeysshon
commited on
Commit
•
6c67cce
1
Parent(s):
699ec29
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
learn_sentiment = load_learner('sentiment_jey.pkl')
|
3 |
learn_sentiment_labels = learn_sentiment.dls.vocab
|
@@ -58,4 +65,3 @@ iface = gr.Interface(
|
|
58 |
iface.launch(enable_queue=True)
|
59 |
|
60 |
|
61 |
-
|
|
|
1 |
+
import os
|
2 |
+
from fastai.vision.all import *
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
# Cargar los modelos
|
6 |
+
learn_emotion = load_learner('emotions_jey.pkl')
|
7 |
+
learn_emotion_labels = learn_emotion.dls.vocab
|
8 |
|
9 |
learn_sentiment = load_learner('sentiment_jey.pkl')
|
10 |
learn_sentiment_labels = learn_sentiment.dls.vocab
|
|
|
65 |
iface.launch(enable_queue=True)
|
66 |
|
67 |
|
|