Spaces:
Runtime error
Runtime error
add title
Browse files
app.py
CHANGED
|
@@ -131,12 +131,16 @@ def pygen_func(nl_code_intent):
|
|
| 131 |
|
| 132 |
iface = gr.Interface(
|
| 133 |
# pygen_func,
|
| 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 |
|
| 142 |
iface.launch(share=True)
|
|
|
|
| 131 |
|
| 132 |
iface = gr.Interface(
|
| 133 |
# pygen_func,
|
| 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)
|