Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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()
|