hipnologo commited on
Commit
3861983
1 Parent(s): ddf50b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -1,11 +1,5 @@
1
  import gradio as gr
2
- #gr.Interface.load("models/hipnologo/gpt2-imdb-finetune").launch()
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