Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,10 +70,10 @@ with gr.Blocks(title="Toxicity Explainer") as demo:
|
|
| 70 |
gr.Markdown("### Explanations")
|
| 71 |
|
| 72 |
with gr.Tab("Naive Explanation"):
|
| 73 |
-
simple_output = gr.Textbox(label="Naive Explanation", lines=
|
| 74 |
|
| 75 |
with gr.Tab("Theory-Grounded Explanation"):
|
| 76 |
-
detailed_output = gr.Textbox(label="Theory-Grounded Explanation", lines=
|
| 77 |
|
| 78 |
def process_text(selected, custom):
|
| 79 |
text = custom.strip() if custom else selected
|
|
|
|
| 70 |
gr.Markdown("### Explanations")
|
| 71 |
|
| 72 |
with gr.Tab("Naive Explanation"):
|
| 73 |
+
simple_output = gr.Textbox(label="Naive Explanation", lines=15)
|
| 74 |
|
| 75 |
with gr.Tab("Theory-Grounded Explanation"):
|
| 76 |
+
detailed_output = gr.Textbox(label="Theory-Grounded Explanation", lines=15)
|
| 77 |
|
| 78 |
def process_text(selected, custom):
|
| 79 |
text = custom.strip() if custom else selected
|