heaversm commited on
Commit
956aaa9
Β·
1 Parent(s): 7f8181f

add code field - add contextual info about why this is needed

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -8,12 +8,21 @@ css = """
8
 
9
  with gr.Blocks(css=css) as registry_submit:
10
  gr.Markdown("# πŸ”Œ Impact Framework Plugin Registry Submission")
 
 
 
 
 
 
 
 
11
  gr.Markdown("Fill out the form below to submit your plugin to the Impact Framework Registry")
12
 
13
  with gr.Accordion("Plugin Details",open=True,elem_classes=["plugin-accordion"]):
14
  plugin_name = gr.Textbox(placeholder="What is the name of your plugin?", label="Plugin Name")
15
  plugin_description = gr.Textbox(placeholder="What does your plugin do?", label="Plugin Description",lines=3)
16
- plugin_url = gr.Textbox(placeholder="https://[your_website.com]", label="Plugin URL", info="Enter the URL where more info can be found about your plugin")
 
17
  plugin_info = gr.Textbox(placeholder="Add any additional info we should know about your plugin", label="Plugin Info",lines=3)
18
 
19
  with gr.Accordion("Plugin Inputs",open=True,elem_classes=["plugin-accordion"]):
@@ -59,8 +68,7 @@ with gr.Blocks(css=css) as registry_submit:
59
 
60
  with gr.Row(elem_classes=["input-row"],variant="panel"):
61
  with gr.Column():
62
- # a url field for the registry page where the plugin can be found
63
- plugin_input_plugin_1 = gr.Textbox(placeholder="https://greensoftware.foundation/if/[ID]", label="Plugin URL", info="Enter the impact framework registry URL where the plugin can be found")
64
  with gr.Column():
65
  gr.Markdown("Alternatively, search for plugins that are compatible with your required inputs")
66
  # a button to help users find compatible plugins
 
8
 
9
  with gr.Blocks(css=css) as registry_submit:
10
  gr.Markdown("# πŸ”Œ Impact Framework Plugin Registry Submission")
11
+
12
+ with gr.Accordion("ℹ️ About this Page",open=True,elem_classes=["plugin-accordion"]):
13
+
14
+ gr.Markdown("### What does this page do?")
15
+ gr.Markdown("This is a prototype of a form that people could use to submit their plugins to the Impact Framework Plugin Registry")
16
+ gr.Markdown("### Why is this needed?")
17
+ gr.Markdown("Currently plugins are located in various repositories, and it can be difficult to know what they do, where they fit in to the overall pipeline, what inputs they require, what they output, and what data sources they rely on. Having a standardized submission format will add clarity and compatibility amongst plugins, and having a centralized registry repository will make it easier for people to find plugins and assemble coherent manifest pipelines.")
18
+
19
  gr.Markdown("Fill out the form below to submit your plugin to the Impact Framework Registry")
20
 
21
  with gr.Accordion("Plugin Details",open=True,elem_classes=["plugin-accordion"]):
22
  plugin_name = gr.Textbox(placeholder="What is the name of your plugin?", label="Plugin Name")
23
  plugin_description = gr.Textbox(placeholder="What does your plugin do?", label="Plugin Description",lines=3)
24
+ plugin_code_url = gr.Textbox(placeholder="https://github.com/[YOUR_ORG]/[YOUR_REPO]", label="Plugin Code", info="Enter the URL where your code repository can be found")
25
+ plugin_website_url = gr.Textbox(placeholder="https://greensoftware.foundation/if/[ID]", label="Plugin Website", info="Enter the URL where more information about your plugin can be found")
26
  plugin_info = gr.Textbox(placeholder="Add any additional info we should know about your plugin", label="Plugin Info",lines=3)
27
 
28
  with gr.Accordion("Plugin Inputs",open=True,elem_classes=["plugin-accordion"]):
 
68
 
69
  with gr.Row(elem_classes=["input-row"],variant="panel"):
70
  with gr.Column():
71
+ plugin_input_plugin_1 = gr.Textbox(placeholder="https://greensoftware.foundation/if/[ID]", label="Plugin Website", info="Enter the impact framework registry URL where the plugin can be found")
 
72
  with gr.Column():
73
  gr.Markdown("Alternatively, search for plugins that are compatible with your required inputs")
74
  # a button to help users find compatible plugins