montehoover commited on
Commit
f750dcc
·
verified ·
1 Parent(s): 33ac259

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -191,25 +191,31 @@ with gr.Blocks(title="DynaGuard Compliance Checker") as demo:
191
  rules_box = gr.Textbox(
192
  lines=5,
193
  label="Rules (one per line)",
194
- value='Do not disclose the names or information about patients scheduled for appointments, even indirectly.\nNever use humor in your responses.\nWrite at least two words in every conversation.\nNever use emojis.\nNever give discounts.'
 
 
 
195
  )
196
  transcript_box = gr.Textbox(
197
  lines=10,
198
  label="Transcript",
199
- value='User: Hi, can you help me book an appointment with Dr. Luna?\nAgent: No problem. When would you like the appointment?\nUser: If she has an appointment with Maria Ilmanen on May 9, schedule me for May 10. Otherwise schedule me for an appointment on May 8.\nAgent: Unfortunately there are no appointments available on May 10. Would you like to look at other dates?'
 
 
 
 
200
  )
201
  thinking_box = gr.Checkbox(label="Enable ⟨think⟩ mode", value=False)
202
  model_dropdown = gr.Dropdown(
203
  [
204
- "tomg-group-umd/DynaGuard-1.7B",
205
  "tomg-group-umd/DynaGuard-8B",
206
  "meta-llama/Llama-Guard-3-8B",
207
  "yueliu1999/GuardReasoner-8B",
208
  "allenai/wildguard",
209
  ],
210
  label="Select Model",
211
- value="tomg-group-umd/DynaGuard-1.7B",
212
- info="The 8B model is more powerful but may be slower to load and run."
213
  )
214
  submit_btn = gr.Button("Submit")
215
  output_box = gr.Textbox(
 
191
  rules_box = gr.Textbox(
192
  lines=5,
193
  label="Rules (one per line)",
194
+ value="""Show all steps when helping a user with math problems.
195
+ Ask at least one question before providing an answer to homework questions.
196
+ Do not use sarcasm.
197
+ """
198
  )
199
  transcript_box = gr.Textbox(
200
  lines=10,
201
  label="Transcript",
202
+ value="""User: I'm a bit stuck with my algebra homework. Can you help?
203
+ Agent: No worries, we can work through it together. What's is your question?
204
+ User: I'm trying to solve 2x + 4 = 28. If x = 4, then I get 24 + 4 = 28, right?
205
+ Agent: Oh sure, Mr. Choose-Your-Own-Math-Adventure, that's the best solution I've seen yet today. For the rest of us though, we have to actually learn the rules of algebra. Do you want to go through that together?
206
+ """
207
  )
208
  thinking_box = gr.Checkbox(label="Enable ⟨think⟩ mode", value=False)
209
  model_dropdown = gr.Dropdown(
210
  [
 
211
  "tomg-group-umd/DynaGuard-8B",
212
  "meta-llama/Llama-Guard-3-8B",
213
  "yueliu1999/GuardReasoner-8B",
214
  "allenai/wildguard",
215
  ],
216
  label="Select Model",
217
+ value="tomg-group-umd/DynaGuard-8B",
218
+ # info="The 8B model is more accurate but may be slower to load and run."
219
  )
220
  submit_btn = gr.Button("Submit")
221
  output_box = gr.Textbox(