taruschirag commited on
Commit
3931938
·
verified ·
1 Parent(s): d657396

Update app.py

Browse files

changed the textbox and the default mode

Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -165,9 +165,19 @@ def compliance_check(rules_text, transcript_text, thinking):
165
  demo = gr.Interface(
166
  fn=compliance_check,
167
  inputs=[
168
- gr.Textbox(lines=5, label="Rules (one per line)", max_lines=10),
169
- gr.Textbox(lines=10, label="Transcript", max_lines=15),
170
- gr.Checkbox(label="Enable ⟨think⟩ mode", value=True)
 
 
 
 
 
 
 
 
 
 
171
  ],
172
  outputs=gr.Textbox(label="Compliance Output", lines=10, max_lines=15),
173
  title="DynaGuard Compliance Checker",
 
165
  demo = gr.Interface(
166
  fn=compliance_check,
167
  inputs=[
168
+ gr.Textbox(
169
+ lines=5,
170
+ label="Rules (one per line)",
171
+ max_lines=10,
172
+ placeholder='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.'
173
+ ),
174
+ gr.Textbox(
175
+ lines=10,
176
+ label="Transcript",
177
+ max_lines=15,
178
+ placeholder='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?'
179
+ ),
180
+ gr.Checkbox(label="Enable ⟨think⟩ mode", value=False)
181
  ],
182
  outputs=gr.Textbox(label="Compliance Output", lines=10, max_lines=15),
183
  title="DynaGuard Compliance Checker",