Spaces:
Runtime error
Runtime error
add description
Browse files
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=
|
138 |
],
|
139 |
# gr.outputs.Textbox(label="Code Generated PL"))
|
140 |
gr.outputs.Textbox(label="Docstring Generated (NL)"),
|
141 |
-
title='
|
142 |
-
description='
|
143 |
-
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)
|