Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
-
|
4 |
-
|
5 |
|
6 |
pipe = pipeline("text-generation", model="deepseek-ai/deepseek-llm-7b-base")
|
7 |
|
8 |
-
|
9 |
def analyze_sentiment(text):
|
10 |
# Analyser le sentiment du texte
|
11 |
results = pipe(text)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
import spaces
|
|
|
4 |
|
5 |
pipe = pipeline("text-generation", model="deepseek-ai/deepseek-llm-7b-base")
|
6 |
|
7 |
+
@spaces.GPU
|
8 |
def analyze_sentiment(text):
|
9 |
# Analyser le sentiment du texte
|
10 |
results = pipe(text)
|