stmnk commited on
Commit
f6ec8cd
·
1 Parent(s): 37863c7

extend labels explanation

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -194,7 +194,7 @@ iface = gr.Interface(
194
  docgen_func,
195
  [
196
  # gr.inputs.Textbox(lines=7, label="Code Intent (NL)", default=task_code),
197
- gr.inputs.Textbox(lines=10, label="Enter Task + Code in Python (PL)", default=task_code),
198
  gr.inputs.Slider(30, 200, default=100, label="Minimum Length (of the output summary, in tokens)"),
199
  gr.inputs.Slider(200, 500, default=350, label="Maximum Length (of the output summary, in tokens)"),
200
  gr.inputs.Slider(1, 7, default=3, label="Top K (tokens considered within the sample operation to create new text)"),
@@ -203,7 +203,7 @@ iface = gr.Interface(
203
  gr.inputs.Slider(0, 100, default=70, label="Repetition Penalty (frequently previously used tokens are downsized)"),
204
  ],
205
  # gr.outputs.Textbox(label="Code Generated PL"))
206
- gr.outputs.Textbox(label="Docstring Generated (NL)"),
207
  title='Generate a documentation string for Python code',
208
  description='The application takes as input the python code for a function, or a class, and generates a documentation string, or code comment, for it using codeT5 fine tuned for code2text generation. Code to text generation, or code summarization, is a CodeXGLUE generation, or sequence to sequence, downstream task. CodeXGLUE stands for General Language Understanding Evaluation benchmark *for code*, which includes diversified code intelligence downstream inference tasks and datasets.',
209
  article=r"""CodeXGLLUE task definition (and dataset): **Code summarization (CodeSearchNet)**:
 
194
  docgen_func,
195
  [
196
  # gr.inputs.Textbox(lines=7, label="Code Intent (NL)", default=task_code),
197
+ gr.inputs.Textbox(lines=10, label="Enter Task + Code in Python (Programming Language syntax, e.g. a Python function or class)", default=task_code),
198
  gr.inputs.Slider(30, 200, default=100, label="Minimum Length (of the output summary, in tokens)"),
199
  gr.inputs.Slider(200, 500, default=350, label="Maximum Length (of the output summary, in tokens)"),
200
  gr.inputs.Slider(1, 7, default=3, label="Top K (tokens considered within the sample operation to create new text)"),
 
203
  gr.inputs.Slider(0, 100, default=70, label="Repetition Penalty (frequently previously used tokens are downsized)"),
204
  ],
205
  # gr.outputs.Textbox(label="Code Generated PL"))
206
+ gr.outputs.Textbox(label="Docstring Generated (Natural Language, code comment for documentation)"),
207
  title='Generate a documentation string for Python code',
208
  description='The application takes as input the python code for a function, or a class, and generates a documentation string, or code comment, for it using codeT5 fine tuned for code2text generation. Code to text generation, or code summarization, is a CodeXGLUE generation, or sequence to sequence, downstream task. CodeXGLUE stands for General Language Understanding Evaluation benchmark *for code*, which includes diversified code intelligence downstream inference tasks and datasets.',
209
  article=r"""CodeXGLLUE task definition (and dataset): **Code summarization (CodeSearchNet)**: