stmnk commited on
Commit
5b0c860
·
1 Parent(s): 7a98a8f

add description

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -134,13 +134,14 @@ iface = gr.Interface(
134
  docgen_func,
135
  [
136
  # gr.inputs.Textbox(lines=7, label="Code Intent (NL)", default=task_code),
137
- gr.inputs.Textbox(lines=51, label="Enter Task + Code in Python (PL)", default=task_code),
138
  ],
139
  # gr.outputs.Textbox(label="Code Generated PL"))
140
  gr.outputs.Textbox(label="Docstring Generated (NL)"),
141
- title='title',
142
- description='description',
143
- article='article'
 
144
  )
145
 
146
  iface.launch(share=True)
 
134
  docgen_func,
135
  [
136
  # gr.inputs.Textbox(lines=7, label="Code Intent (NL)", default=task_code),
137
+ gr.inputs.Textbox(lines=10, label="Enter Task + Code in Python (PL)", default=task_code),
138
  ],
139
  # gr.outputs.Textbox(label="Code Generated PL"))
140
  gr.outputs.Textbox(label="Docstring Generated (NL)"),
141
+ title='Generate a documentation string for Python code',
142
+ description='The application takes the python code for a function or class as an input an generates a documentation string for it using codeT5 fine tuned for code2text generation',
143
+ article='_article_ *bold*',
144
+ theme='peach'
145
  )
146
 
147
  iface.launch(share=True)