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