Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,10 @@ def create_tool(display_name, description, inputs):
|
|
22 |
}
|
23 |
return register_tool(tool_data)
|
24 |
|
25 |
-
inputs = [
|
26 |
-
gr.inputs.Textbox(label="Display Name"),
|
27 |
-
gr.inputs.Textbox(label="Description"),
|
28 |
-
gr.inputs.JSON(label="Inputs (JSON format)"), # Allow user to input inputs in JSON
|
29 |
-
]
|
30 |
|
|
|
|
|
|
|
|
|
|
|
31 |
gr.Interface(fn=create_tool, inputs=inputs, outputs="json").launch()
|
|
|
22 |
}
|
23 |
return register_tool(tool_data)
|
24 |
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
demo = gr.Interface(
|
27 |
+
fn=greet,
|
28 |
+
inputs=gr.Textbox(label="Display Name"), # Updated line
|
29 |
+
outputs=gr.Textbox() # You can use gr.Textbox or other components as needed
|
30 |
+
)
|
31 |
gr.Interface(fn=create_tool, inputs=inputs, outputs="json").launch()
|