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