Ramaravind commited on
Commit
43fcdf6
·
verified ·
1 Parent(s): 3df5e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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