0xcyborg commited on
Commit
e87c5d4
1 Parent(s): e9b6620

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ with gr.Blocks(theme="darkdefault") as demo:
23
  print(_prompt,_token)
24
  r = requests.post(url='https://xcyborgart-app.herokuapp.com/create',data={"prompt":_prompt,"token":_token})
25
  all_data = r.json()
26
- print(all_data)
27
- return all_data['data'],all_data['description'],all_data['image_url'],all_data['keywords'],all_data['keywords_string']
28
  except Exception as e:
29
  print('exception:',e)
30
  traceback.print_exc()
 
23
  print(_prompt,_token)
24
  r = requests.post(url='https://xcyborgart-app.herokuapp.com/create',data={"prompt":_prompt,"token":_token})
25
  all_data = r.json()
26
+ print(all_data.keys())
27
+ return(all_data['img_data'],all_data['description'],all_data['image_url'],all_data['keywords'],all_data['keywords_string'])
28
  except Exception as e:
29
  print('exception:',e)
30
  traceback.print_exc()