stmnk commited on
Commit
72a78e9
·
1 Parent(s): e21fb7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -185,7 +185,8 @@ 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 f'"""\n{" || ".join(output[0]["generated_text"].split("|"))}\n"""'
 
189
  else:
190
  msg = str(output)
191
  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 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}":