Spaces:
Runtime error
Runtime error
add docstring
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ real_docstring = r"""
|
|
114 |
def docgen_func(function_code):
|
115 |
req_data = {"inputs": function_code}
|
116 |
output = query(req_data)
|
117 |
-
return f'"""\n{output[0][
|
118 |
|
119 |
def pygen_func(nl_code_intent):
|
120 |
pass # TODO: generate code PL from intent NL + search in corpus
|
|
|
114 |
def docgen_func(function_code):
|
115 |
req_data = {"inputs": function_code}
|
116 |
output = query(req_data)
|
117 |
+
return f'"""\n{output[0]["generated_text"]}\n"""'
|
118 |
|
119 |
def pygen_func(nl_code_intent):
|
120 |
pass # TODO: generate code PL from intent NL + search in corpus
|