Spaces:
Runtime error
Runtime error
DHRUV SHEKHAWAT
commited on
Commit
·
6d1b602
1
Parent(s):
2c0c6d3
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def generate_response(prompt):
|
|
112 |
|
113 |
response = response.json()
|
114 |
imageurl = response['data'][0]['url']
|
115 |
-
ie = f"Here is the generated image:\n {imageurl} \n \n Model used: `{
|
116 |
st.session_state['messages'].append({"role": "assistant", "content": ie})
|
117 |
|
118 |
except requests.exceptions.JSONDecodeError as e:
|
|
|
112 |
|
113 |
response = response.json()
|
114 |
imageurl = response['data'][0]['url']
|
115 |
+
ie = f"Here is the generated image:\n {imageurl} \n \n Model used: `{image_model}`"
|
116 |
st.session_state['messages'].append({"role": "assistant", "content": ie})
|
117 |
|
118 |
except requests.exceptions.JSONDecodeError as e:
|