brichett commited on
Commit
5f183d0
·
verified ·
1 Parent(s): 5cf1d16

Update src/gradio_server.py

Browse files
Files changed (1) hide show
  1. 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", "text"], # 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."
 
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."