Ozgur Unlu
commited on
Commit
·
d1fb134
1
Parent(s):
61f73d5
final touches
Browse files
app.py
CHANGED
@@ -304,11 +304,14 @@ def format_results(results):
|
|
304 |
def create_interface():
|
305 |
with gr.Blocks(title="Marketing Content Validator") as interface:
|
306 |
gr.Markdown("# Marketing Content Validator")
|
|
|
|
|
|
|
307 |
gr.Markdown("Paste your marketing content below to check for potential issues.")
|
308 |
|
309 |
valid_sample = "Introducing our vibrant collection of iPhone cases designed for young adults who love to stand out! These cases come in a variety of eye-catching colors and patterns that add a splash of personality to your device. Made from durable, sustainable materials, they offer robust protection against everyday bumps and scratches while being kind to the planet. Best of all, they're priced competitively, so you don't have to break the bank to accessorize your phone. Elevate your style and safeguard your phone with our eco-friendly, affordable iPhone cases today!"
|
310 |
|
311 |
-
problematic_sample = "Introducing our new daily face mask, perfect for those seeking a quick skincare boost! In just 10 minutes, this
|
312 |
|
313 |
with gr.Row():
|
314 |
valid_btn = gr.Button(
|
|
|
304 |
def create_interface():
|
305 |
with gr.Blocks(title="Marketing Content Validator") as interface:
|
306 |
gr.Markdown("# Marketing Content Validator")
|
307 |
+
gr.Markdown ("-------------------")
|
308 |
+
gr.Markdown ("Current limitations: Able to use a basic RAG model for news context check with a small dataset due to GPU limitations. Binary classification (positive/negative) might miss nuanced concerns.")
|
309 |
+
gr.Markdown ("-------------------")
|
310 |
gr.Markdown("Paste your marketing content below to check for potential issues.")
|
311 |
|
312 |
valid_sample = "Introducing our vibrant collection of iPhone cases designed for young adults who love to stand out! These cases come in a variety of eye-catching colors and patterns that add a splash of personality to your device. Made from durable, sustainable materials, they offer robust protection against everyday bumps and scratches while being kind to the planet. Best of all, they're priced competitively, so you don't have to break the bank to accessorize your phone. Elevate your style and safeguard your phone with our eco-friendly, affordable iPhone cases today!"
|
313 |
|
314 |
+
problematic_sample = "Introducing our new daily face mask, perfect for those seeking a quick skincare boost! In just 10 minutes, this mask rejuvenates your skin, leaving it looking healthier and more radiant. Formulated with natural, nourishing ingredients, it's gentle enough for everyday use and suitable for all skin types, so, perfect for all the drama queens out there! Say goodbye to dullness and hello to a refreshed complexion. Plus, our mask is eco-friendly and cruelty-free, aligning with a conscious lifestyle. Elevate your daily routine with this simple step toward glowing skin. Try our face mask today and unveil a more confident you!"
|
315 |
|
316 |
with gr.Row():
|
317 |
valid_btn = gr.Button(
|