hanyullai commited on
Commit
c541ed9
1 Parent(s): 39202f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -44,9 +44,8 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
44
  except Exception as e:
45
  return 'Timeout! Please wait a few minutes and retry'
46
 
47
- if response['status'] ==1:
48
- print(response)
49
- return response['result']['errmsg']
50
 
51
  answer = response['result']['output']['raw']
52
  if isinstance(answer, list):
 
44
  except Exception as e:
45
  return 'Timeout! Please wait a few minutes and retry'
46
 
47
+ if response['status'] == 1:
48
+ return response['message']['errmsg']
 
49
 
50
  answer = response['result']['output']['raw']
51
  if isinstance(answer, list):