Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ client = InferenceClient(
|
|
| 9 |
)
|
| 10 |
|
| 11 |
# -------------------------
|
| 12 |
-
# API Call
|
| 13 |
# -------------------------
|
| 14 |
def query_llm(text, mode):
|
| 15 |
prompt = f"Text: {text}\n\n"
|
|
@@ -48,7 +48,7 @@ preloaded_texts = [
|
|
| 48 |
# -------------------------
|
| 49 |
with gr.Blocks(title="Toxicity Explainer") as demo:
|
| 50 |
gr.Markdown("## Toxicity Explainer")
|
| 51 |
-
gr.Markdown("Select a text from the list or enter your own, then view two explanations (naive and our theory-guided) on the right.")
|
| 52 |
|
| 53 |
with gr.Row():
|
| 54 |
# Left pane
|
|
|
|
| 9 |
)
|
| 10 |
|
| 11 |
# -------------------------
|
| 12 |
+
# API Call - Based on recent work: https://github.com/uofthcdslab/HAF
|
| 13 |
# -------------------------
|
| 14 |
def query_llm(text, mode):
|
| 15 |
prompt = f"Text: {text}\n\n"
|
|
|
|
| 48 |
# -------------------------
|
| 49 |
with gr.Blocks(title="Toxicity Explainer") as demo:
|
| 50 |
gr.Markdown("## Toxicity Explainer")
|
| 51 |
+
gr.Markdown("Select a text from the list or enter your own, then view two explanations (naive and our theory-guided) on the right. Based on recent work: Based on recent work: https://github.com/uofthcdslab/HAF.")
|
| 52 |
|
| 53 |
with gr.Row():
|
| 54 |
# Left pane
|