Spaces:
Runtime error
Runtime error
add article
Browse files
app.py
CHANGED
@@ -139,10 +139,17 @@ iface = gr.Interface(
|
|
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
|
143 |
-
article=
|
144 |
-
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
verbose=True,
|
147 |
show_tips=True
|
148 |
)
|
|
|
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 a class, as an input and generates a documentation string 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. It includes several datasets for diversified code intelligence tasks',
|
143 |
+
article=r"""# CodeXGLLUE task definition (and dataset):
|
144 |
+
|
145 |
+
## Code summarization (CodeSearchNet).
|
146 |
+
|
147 |
+
A model is given the task to generate natural language comments for a code.
|
148 |
+
|
149 |
+
For further details, see the [CodeXGLUE](https://github.com/microsoft/CodeXGLUE) benchmark dataset and open challenge for code intelligence.
|
150 |
+
""",
|
151 |
+
theme='huggingface',
|
152 |
+
examples=[[dfs_code],['code 2']],
|
153 |
verbose=True,
|
154 |
show_tips=True
|
155 |
)
|