Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
|
|
|
|
|
|
3 |
|
4 |
# Chargement du modèle de classification de sentiment
|
5 |
classifier = pipeline("sentiment-analysis")
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
import spaces
|
4 |
+
|
5 |
+
@spaces.GPU
|
6 |
|
7 |
# Chargement du modèle de classification de sentiment
|
8 |
classifier = pipeline("sentiment-analysis")
|