Spaces:
Sleeping
Sleeping
tanveeshsingh
commited on
Commit
·
40304d7
1
Parent(s):
6275fed
Fix
Browse files
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.
|
57 |
-
|
|
|
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",
|