mtb2023 commited on
Commit
cd60be7
·
1 Parent(s): 200e5ff

change code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def predict(message, history):
41
  if response.status_code != 200:
42
  raise Exception(f'Request failed with status {response.status_code}, {response.text}')
43
  print(response.json())
44
- yield response.text.json().predictions[0].result
45
  #.response.text.predictions[0].result
46
 
47
 
 
41
  if response.status_code != 200:
42
  raise Exception(f'Request failed with status {response.status_code}, {response.text}')
43
  print(response.json())
44
+ yield response.json().predictions[0].result
45
  #.response.text.predictions[0].result
46
 
47