Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
|
|
|
|
|
|
195 |
)
|
196 |
transcript_box = gr.Textbox(
|
197 |
lines=10,
|
198 |
label="Transcript",
|
199 |
-
value=
|
|
|
|
|
|
|
|
|
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-
|
212 |
-
info="The 8B model is more
|
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(
|