hruday96 commited on
Commit
e677fdf
·
verified ·
1 Parent(s): fec921d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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