hanyullai commited on
Commit
21443c3
1 Parent(s): 77389b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -36,7 +36,9 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
36
 
37
  response = requests.request("POST", url, headers=headers, data=payload)
38
 
39
- answer = response.json()['result']['output']['raw']
 
 
40
  if isinstance(answer, list):
41
  answer = answer[0]
42
 
 
36
 
37
  response = requests.request("POST", url, headers=headers, data=payload)
38
 
39
+ print(response.json())
40
+
41
+ answer = text.rstrip() + ' ' + response.json()['result']['output']['text']
42
  if isinstance(answer, list):
43
  answer = answer[0]
44