Spaces:
Runtime error
Runtime error
try unaligned layout
Browse files
app.py
CHANGED
@@ -202,9 +202,9 @@ iface = gr.Interface(
|
|
202 |
gr.inputs.Slider(0, 100, default=1, label="Temperature (of the sampling operation)"),
|
203 |
gr.inputs.Slider(0, 100, default=70, label="Repetition Penalty (frequently previously used tokens are downsized)"),
|
204 |
],
|
205 |
-
layout="unaligned",
|
206 |
# gr.outputs.Textbox(label="Code Generated PL"))
|
207 |
gr.outputs.Textbox(label="Docstring Generated (Natural Language, code comment for documentation)"),
|
|
|
208 |
title='Generate a documentation string for Python code',
|
209 |
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.',
|
210 |
article=r"""CodeXGLLUE task definition (and dataset): **Code summarization (CodeSearchNet)**:
|
|
|
202 |
gr.inputs.Slider(0, 100, default=1, label="Temperature (of the sampling operation)"),
|
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 |
+
layout="unaligned",
|
208 |
title='Generate a documentation string for Python code',
|
209 |
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.',
|
210 |
article=r"""CodeXGLLUE task definition (and dataset): **Code summarization (CodeSearchNet)**:
|