Update src/gradio_server.py
Browse files- src/gradio_server.py +1 -1
src/gradio_server.py
CHANGED
@@ -117,7 +117,7 @@ iface = gr.Interface(
|
|
117 |
# Second interface for policy enforcement
|
118 |
iface2 = gr.Interface(
|
119 |
fn=gradio_generate_policy_enforcement, # Function to generate policy enforcement
|
120 |
-
inputs=["text", gr.JSON
|
121 |
outputs="json", # Return JSON output
|
122 |
title="Policy Enforcement Decision",
|
123 |
description="Enter user text and context to generate a policy enforcement decision."
|
|
|
117 |
# Second interface for policy enforcement
|
118 |
iface2 = gr.Interface(
|
119 |
fn=gradio_generate_policy_enforcement, # Function to generate policy enforcement
|
120 |
+
inputs=["text", gr.Textbox(lines=5, placeholder="Enter JSON-formatted violation context")], # Two text inputs, one for user text, one for violation context
|
121 |
outputs="json", # Return JSON output
|
122 |
title="Policy Enforcement Decision",
|
123 |
description="Enter user text and context to generate a policy enforcement decision."
|