alex-abb commited on
Commit
a38461a
1 Parent(s): 68c361c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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")