Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ if st.button("Get Picture from Text"):
|
|
30 |
)
|
31 |
except Exception as e:
|
32 |
st.error(f"ChatGPT Error {e}")
|
33 |
-
|
34 |
payload = {
|
35 |
"providers": "openai",
|
36 |
"settings" : {"openai": "dall-e-3"},
|
|
|
30 |
)
|
31 |
except Exception as e:
|
32 |
st.error(f"ChatGPT Error {e}")
|
33 |
+
st.write(response.choices[0].message["content"])
|
34 |
payload = {
|
35 |
"providers": "openai",
|
36 |
"settings" : {"openai": "dall-e-3"},
|