Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,17 @@ def check_plagiarism(text):
|
|
| 83 |
# Define the Gradio interface
|
| 84 |
def create_plagiarism_checker():
|
| 85 |
with gr.Blocks() as app:
|
| 86 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
gr.Markdown("""
|
| 88 |
# 📝 Plagiarism and Academic Integrity Checker
|
| 89 |
Use this tool to detect AI-generated content in your text using SynthID technology.
|
|
@@ -91,7 +101,7 @@ def create_plagiarism_checker():
|
|
| 91 |
---
|
| 92 |
""")
|
| 93 |
|
| 94 |
-
# Layout the components
|
| 95 |
with gr.Row():
|
| 96 |
# Input textbox for users to paste text
|
| 97 |
text_input = gr.Textbox(
|
|
@@ -116,14 +126,6 @@ def create_plagiarism_checker():
|
|
| 116 |
|
| 117 |
return app
|
| 118 |
|
| 119 |
-
#
|
| 120 |
-
css = """
|
| 121 |
-
#text_input { font-size: 16px; border: 1px solid #ddd; padding: 8px; }
|
| 122 |
-
#output { font-size: 16px; padding: 8px; border-radius: 5px; }
|
| 123 |
-
#check_button { font-size: 16px; background-color: #4CAF50; color: white; border: none; padding: 10px 20px; cursor: pointer; }
|
| 124 |
-
#check_button:hover { background-color: #45a049; }
|
| 125 |
-
"""
|
| 126 |
-
|
| 127 |
-
# Launch the app with the custom CSS
|
| 128 |
plagiarism_checker_app = create_plagiarism_checker()
|
| 129 |
-
plagiarism_checker_app.launch(
|
|
|
|
| 83 |
# Define the Gradio interface
|
| 84 |
def create_plagiarism_checker():
|
| 85 |
with gr.Blocks() as app:
|
| 86 |
+
# Embed CSS directly with an HTML component
|
| 87 |
+
app.append(gr.HTML("""
|
| 88 |
+
<style>
|
| 89 |
+
#text_input { font-size: 16px; border: 1px solid #ddd; padding: 8px; }
|
| 90 |
+
#output { font-size: 16px; padding: 8px; border-radius: 5px; }
|
| 91 |
+
#check_button { font-size: 16px; background-color: #4CAF50; color: white; border: none; padding: 10px 20px; cursor: pointer; }
|
| 92 |
+
#check_button:hover { background-color: #45a049; }
|
| 93 |
+
</style>
|
| 94 |
+
"""))
|
| 95 |
+
|
| 96 |
+
# Title and description
|
| 97 |
gr.Markdown("""
|
| 98 |
# 📝 Plagiarism and Academic Integrity Checker
|
| 99 |
Use this tool to detect AI-generated content in your text using SynthID technology.
|
|
|
|
| 101 |
---
|
| 102 |
""")
|
| 103 |
|
| 104 |
+
# Layout the components
|
| 105 |
with gr.Row():
|
| 106 |
# Input textbox for users to paste text
|
| 107 |
text_input = gr.Textbox(
|
|
|
|
| 126 |
|
| 127 |
return app
|
| 128 |
|
| 129 |
+
# Launch the app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
plagiarism_checker_app = create_plagiarism_checker()
|
| 131 |
+
plagiarism_checker_app.launch()
|