Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
import gradio as gr
|
5 |
-
from transformers import pipeline
|
6 |
-
|
7 |
-
# Load the sentiment analysis pipeline
|
8 |
-
sentiment_analysis = pipeline("text-classification", model="models/hipnologo/gpt2-imdb-finetune")
|
9 |
|
10 |
def predict(review_text):
|
11 |
# Run the review text through the pipeline
|
|
|
1 |
import gradio as gr
|
2 |
+
sentiment_analysis = gr.Interface.load("models/hipnologo/gpt2-imdb-finetune").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
def predict(review_text):
|
5 |
# Run the review text through the pipeline
|