Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,8 @@ from crewai import Agent, Task, Crew, Process
|
|
16 |
# Retrieve API Key from Environment Variable
|
17 |
GOOGLE_AI_STUDIO = os.environ.get('GOOGLE_API_KEY')
|
18 |
|
|
|
|
|
19 |
# Ensure the API key is available
|
20 |
if not GOOGLE_AI_STUDIO:
|
21 |
st.error("API key not found. Please set the GOOGLE_AI_STUDIO environment variable.")
|
@@ -171,4 +173,4 @@ if st.button("Run"):
|
|
171 |
# Display the result
|
172 |
st.text_area("Output", value=result, height=300)
|
173 |
|
174 |
-
st.image(image, caption='Generated Image', use_column_width=True)
|
|
|
16 |
# Retrieve API Key from Environment Variable
|
17 |
GOOGLE_AI_STUDIO = os.environ.get('GOOGLE_API_KEY')
|
18 |
|
19 |
+
image=""
|
20 |
+
|
21 |
# Ensure the API key is available
|
22 |
if not GOOGLE_AI_STUDIO:
|
23 |
st.error("API key not found. Please set the GOOGLE_AI_STUDIO environment variable.")
|
|
|
173 |
# Display the result
|
174 |
st.text_area("Output", value=result, height=300)
|
175 |
|
176 |
+
st.image(image, caption='Generated Image', use_column_width=True)
|