Spaces:
Sleeping
Sleeping
update text
Browse files
README.md
CHANGED
@@ -83,6 +83,7 @@ print(f"Predicted label: {predicted_label}")
|
|
83 |
## IMDb Sentiment Analyzer - Gradio App
|
84 |
|
85 |
This repository contains a Gradio application for sentiment analysis of IMDb movie reviews.
|
|
|
86 |
It uses a fine-tuned ModernBERT model hosted on Hugging Face.
|
87 |
|
88 |
**Space Link:** [voxmenthe/imdb-sentiment-demo](https://huggingface.co/spaces/voxmenthe/imdb-sentiment-demo)
|
|
|
83 |
## IMDb Sentiment Analyzer - Gradio App
|
84 |
|
85 |
This repository contains a Gradio application for sentiment analysis of IMDb movie reviews.
|
86 |
+
It is hosted on Hugging Face Spaces at [voxmenthe/imdb-sentiment-demo](https://huggingface.co/spaces/voxmenthe/imdb-sentiment-demo).
|
87 |
It uses a fine-tuned ModernBERT model hosted on Hugging Face.
|
88 |
|
89 |
**Space Link:** [voxmenthe/imdb-sentiment-demo](https://huggingface.co/spaces/voxmenthe/imdb-sentiment-demo)
|
app.py
CHANGED
@@ -151,7 +151,7 @@ with gr.Blocks() as demo:
|
|
151 |
["This movie was absolutely fantastic! The acting was superb and the plot was gripping."],
|
152 |
["I was really disappointed with this film. It was boring and the story made no sense."],
|
153 |
["An average movie, had some good parts but overall quite forgettable."],
|
154 |
-
["
|
155 |
],
|
156 |
inputs=input_textbox
|
157 |
)
|
@@ -159,8 +159,11 @@ with gr.Blocks() as demo:
|
|
159 |
with gr.Accordion("Advanced: Full Model Evaluation on IMDB Test Set", open=False):
|
160 |
gr.Markdown(
|
161 |
"""**WARNING!** Clicking the button below will run the sentiment analysis model on the **entire IMDB test dataset (25,000 reviews)**. "
|
162 |
-
|
163 |
-
"of the Hugging Face Space or machine running this app).
|
|
|
|
|
|
|
164 |
"Progress messages will be shown below."""
|
165 |
)
|
166 |
run_eval_button = gr.Button("Run Full Evaluation on IMDB Test Set")
|
|
|
151 |
["This movie was absolutely fantastic! The acting was superb and the plot was gripping."],
|
152 |
["I was really disappointed with this film. It was boring and the story made no sense."],
|
153 |
["An average movie, had some good parts but overall quite forgettable."],
|
154 |
+
["While the plot was predictable, the acting was solid and the plot was engaging. Overall it was watchable"]
|
155 |
],
|
156 |
inputs=input_textbox
|
157 |
)
|
|
|
159 |
with gr.Accordion("Advanced: Full Model Evaluation on IMDB Test Set", open=False):
|
160 |
gr.Markdown(
|
161 |
"""**WARNING!** Clicking the button below will run the sentiment analysis model on the **entire IMDB test dataset (25,000 reviews)**. "
|
162 |
+
|
163 |
+
"This is computationally intensive process and will take a long time (potentially **20 minutes or more** depending on the hardware of the Hugging Face Space or machine running this app). It may not even run unless the hardware is upgraded. "
|
164 |
+
|
165 |
+
"The application might appear unresponsive during this period. "
|
166 |
+
|
167 |
"Progress messages will be shown below."""
|
168 |
)
|
169 |
run_eval_button = gr.Button("Run Full Evaluation on IMDB Test Set")
|