Update app.py
Browse files
app.py
CHANGED
@@ -30,12 +30,10 @@ def analyze(text):
|
|
30 |
return hate_label, f"{hate_conf:.2f}", dial_label, f"{dial_conf:.2f}", f"{score:.2f}", action
|
31 |
|
32 |
|
33 |
-
with gr.Blocks(
|
34 |
-
#sidebar {background-color: #e0e0e0; padding: 20px; border-radius: 8px;}
|
35 |
-
""") as demo:
|
36 |
with gr.Row():
|
37 |
# Sidebar
|
38 |
-
with gr.Column(scale=1
|
39 |
gr.Markdown("""
|
40 |
## 🛡️ Arabic Content Safety Analyzer
|
41 |
|
@@ -68,3 +66,5 @@ with gr.Blocks(css="""
|
|
68 |
]
|
69 |
submit_btn = gr.Button("Analyze")
|
70 |
submit_btn.click(fn=analyze, inputs=input_text, outputs=outputs)
|
|
|
|
|
|
30 |
return hate_label, f"{hate_conf:.2f}", dial_label, f"{dial_conf:.2f}", f"{score:.2f}", action
|
31 |
|
32 |
|
33 |
+
with gr.Blocks() as demo:
|
|
|
|
|
34 |
with gr.Row():
|
35 |
# Sidebar
|
36 |
+
with gr.Column(scale=1):
|
37 |
gr.Markdown("""
|
38 |
## 🛡️ Arabic Content Safety Analyzer
|
39 |
|
|
|
66 |
]
|
67 |
submit_btn = gr.Button("Analyze")
|
68 |
submit_btn.click(fn=analyze, inputs=input_text, outputs=outputs)
|
69 |
+
|
70 |
+
demo.launch()
|