Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
import gradio as gr
|
2 |
|
3 |
-
gr.load("models/AnkitAI/reviews-roberta-base-sentiment-analysis").launch()
|
4 |
|
5 |
# import gradio as gr
|
6 |
# from transformers import RobertaForSequenceClassification, RobertaTokenizer
|
@@ -79,7 +79,7 @@ interface = gr.Interface(
|
|
79 |
inputs=gr.inputs.Textbox(lines=5, placeholder="Enter a review...", label="Review Text"),
|
80 |
outputs=gr.outputs.Textbox(label="Sentiment"),
|
81 |
title="Reviews Sentiment Analysis with RoBERTa",
|
82 |
-
description="Analyze the sentiment of
|
83 |
theme="default",
|
84 |
css=css,
|
85 |
examples=[["This product is great!"], ["I am very disappointed with this purchase."]],
|
|
|
1 |
+
# import gradio as gr
|
2 |
|
3 |
+
# gr.load("models/AnkitAI/reviews-roberta-base-sentiment-analysis").launch()
|
4 |
|
5 |
# import gradio as gr
|
6 |
# from transformers import RobertaForSequenceClassification, RobertaTokenizer
|
|
|
79 |
inputs=gr.inputs.Textbox(lines=5, placeholder="Enter a review...", label="Review Text"),
|
80 |
outputs=gr.outputs.Textbox(label="Sentiment"),
|
81 |
title="Reviews Sentiment Analysis with RoBERTa",
|
82 |
+
description="Analyze the sentiment of reviews using a fine-tuned RoBERTa model. Enter a review to see if it is positive or negative.",
|
83 |
theme="default",
|
84 |
css=css,
|
85 |
examples=[["This product is great!"], ["I am very disappointed with this purchase."]],
|