osanseviero commited on
Commit
e59c738
·
1 Parent(s): 83e4966

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,7 +13,7 @@ inputs_description = """This is a description of the inputs that the prompt expe
13
  """
14
  usage_description = """Below is a code snippet for how to use the prompt.
15
 
16
- ```
17
  {{Code snippet}}
18
  ```
19
  """
@@ -77,8 +77,8 @@ with gr.Blocks() as form:
77
  gr.Markdown("# LangChain Hub Form")
78
  gr.Markdown("## Submit a prompt")
79
  name = gr.Textbox(lines=1, placeholder="Name for the prompt", label="Name")
80
- high_level_description = gr.Textbox(lines=2, placeholder="High level text description of the prompt, including use cases.", interactive=True, label="Description")
81
- inputs_description = gr.Textbox(lines=3, value=inputs_description, interactive=True, label="Inputs Description")
82
  usage_description = gr.Textbox(lines=3, value=usage_description, interactive=True, label="Usage Description")
83
 
84
  input_variables = gr.Textbox(value=input_variables_description, interactive=True, label="Input Variables")
@@ -87,7 +87,7 @@ with gr.Blocks() as form:
87
 
88
  btn = gr.Button(value="Share Prompt")
89
  inputs = [name, high_level_description, inputs_description, usage_description, input_variables, template, token]
90
- output = gr.Textbox()
91
  btn.click(submit, inputs=inputs, outputs=[output])
92
 
93
  form.launch(debug=True)
 
13
  """
14
  usage_description = """Below is a code snippet for how to use the prompt.
15
 
16
+ ```python
17
  {{Code snippet}}
18
  ```
19
  """
 
77
  gr.Markdown("# LangChain Hub Form")
78
  gr.Markdown("## Submit a prompt")
79
  name = gr.Textbox(lines=1, placeholder="Name for the prompt", label="Name")
80
+ high_level_description = gr.Textbox(lines=1, placeholder="High level text description of the prompt, including use cases.", interactive=True, label="Description")
81
+ inputs_description = gr.Textbox(lines=2, value=inputs_description, interactive=True, label="Inputs Description")
82
  usage_description = gr.Textbox(lines=3, value=usage_description, interactive=True, label="Usage Description")
83
 
84
  input_variables = gr.Textbox(value=input_variables_description, interactive=True, label="Input Variables")
 
87
 
88
  btn = gr.Button(value="Share Prompt")
89
  inputs = [name, high_level_description, inputs_description, usage_description, input_variables, template, token]
90
+ output = gr.Markdown(label="output")
91
  btn.click(submit, inputs=inputs, outputs=[output])
92
 
93
  form.launch(debug=True)