muqeet1234 commited on
Commit
5aeb152
·
verified ·
1 Parent(s): 3d0b931

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -1
app.py CHANGED
@@ -35,4 +35,45 @@ st.sidebar.write("""
35
  Here are some tips for healthy nails:
36
  - Keep nails clean and trimmed.
37
  - Use a moisturizing lotion or oil for your nails.
38
- - Avoid biting nai
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  Here are some tips for healthy nails:
36
  - Keep nails clean and trimmed.
37
  - Use a moisturizing lotion or oil for your nails.
38
+ - Avoid biting nails and using them as tools.
39
+ - Apply a base coat before using nail polish to prevent staining.
40
+ - Make sure to stay hydrated and eat a balanced diet rich in biotin, zinc, and iron.
41
+ """)
42
+
43
+ # Main content: Amazon PPC Keyword Optimizer
44
+ st.title("Amazon PPC Keyword Optimizer")
45
+ st.write("""
46
+ **Description**: Suggest optimal keywords for Amazon PPC campaigns based on product details, target audience, and existing keywords.
47
+
48
+ ### Input Fields:
49
+ - **Product Details**: Name, Category, Features
50
+ - **Target Audience**: Gender, Age Range, Location
51
+ - **Existing Keywords**: Current keywords used in PPC campaigns
52
+ """)
53
+
54
+ # Input Fields
55
+ st.header("Product and Audience Details")
56
+ product_name = st.text_input("Enter product name")
57
+ product_category = st.selectbox("Select product category", ["Electronics", "Clothing", "Home", "Beauty", "Toys"])
58
+ product_features = st.text_area("Enter key product features (e.g., color, size, functionality)")
59
+
60
+ st.header("Target Audience")
61
+ audience_gender = st.selectbox("Select audience gender", ["Male", "Female", "Unisex"])
62
+ audience_age = st.slider("Select audience age range", min_value=18, max_value=65, value=(25, 45))
63
+ audience_location = st.text_input("Enter target location (e.g., USA, UK)")
64
+
65
+ st.header("Existing Product Keywords")
66
+ keywords_input = st.text_area("Enter current product keywords (comma-separated)")
67
+
68
+ # Function to generate recommended keywords
69
+ def generate_keywords(product_category, product_features, audience_gender, audience_age, audience_location, keywords_input):
70
+ keywords = set(keywords_input.split(","))
71
+
72
+ # Add product-specific features
73
+ features_keywords = product_features.split(",")
74
+ for feature in features_keywords:
75
+ keywords.add(feature.strip())
76
+
77
+ # Add category-related keywords
78
+ category_keywords = {
79
+ "Electronics": ["gadgets", "tech", "smartphone",