tanveeshsingh commited on
Commit
40304d7
1 Parent(s): 6275fed
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -53,8 +53,9 @@ def process_inputs(conv_prefix, response_content):
53
  demo = gr.Interface(
54
  fn=process_inputs,
55
  inputs=[
56
- gr.JSON(label="Conversation Prefix (Array of Objects)", value='list'),
57
- gr.Textbox(lines=2, placeholder="Enter the assistant's response", label="Assistant Response")
 
58
  ],
59
  outputs="text",
60
  title="Prompt Safety Classification",
 
53
  demo = gr.Interface(
54
  fn=process_inputs,
55
  inputs=[
56
+ gr.Textbox(label="Conversation Prefix", lines=5, visible=True, value='[{"role": "user", "content": "Hi How are you?"}]'),
57
+
58
+ gr.Textbox(lines=2, placeholder="Enter the assistant's response", label="Assistant Response", value='I am good! Thanks for asking')
59
  ],
60
  outputs="text",
61
  title="Prompt Safety Classification",