Spaces:
Runtime error
Runtime error
update display string
Browse files
app.py
CHANGED
@@ -185,8 +185,7 @@ def docgen_func(function_code, min_length, max_length, top_k, top_p, temp, repet
|
|
185 |
}
|
186 |
output = query(req_data)
|
187 |
if type(output) is list:
|
188 |
-
return output[0]["generated_text"]
|
189 |
-
# return f'"""\n{" ".join(output[0]["generated_text"].split("\n"))}\n"""'
|
190 |
else:
|
191 |
msg = str(output)
|
192 |
if msg == "{'error': 'Model stmnk/codet5-small-code-summarization-python is currently loading', 'estimated_time': 20}":
|
|
|
185 |
}
|
186 |
output = query(req_data)
|
187 |
if type(output) is list:
|
188 |
+
return f'"""\n{output[0]["generated_text"]}\n"""'
|
|
|
189 |
else:
|
190 |
msg = str(output)
|
191 |
if msg == "{'error': 'Model stmnk/codet5-small-code-summarization-python is currently loading', 'estimated_time': 20}":
|