Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,14 @@ if product_name and product_features and target_audience:
|
|
44 |
Product Features: {product_features}
|
45 |
Target Audience: {target_audience}
|
46 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
|
49 |
# Add some space or content in between
|
|
|
44 |
Product Features: {product_features}
|
45 |
Target Audience: {target_audience}
|
46 |
"""
|
47 |
+
if st.button("Generate"):
|
48 |
+
# Call to Google Gemini API
|
49 |
+
response = genai.generate(prompt)
|
50 |
+
if response:
|
51 |
+
st.subheader("Generated Product Description:")
|
52 |
+
st.write(response)
|
53 |
+
else:
|
54 |
+
st.write("Error: Unable to generate the description.")
|
55 |
|
56 |
|
57 |
# Add some space or content in between
|