MBilal-72 commited on
Commit
cc4861a
Β·
verified Β·
1 Parent(s): 507c6f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -28
app.py CHANGED
@@ -105,11 +105,6 @@ class GEOSEOApp:
105
  st.sidebar.markdown("- 🌐 Website GEO Analysis")
106
  st.sidebar.markdown("- πŸ“Š AI-First SEO Scoring")
107
 
108
- st.sidebar.markdown("---")
109
- st.sidebar.markdown("### πŸ”§ Configuration")
110
- st.sidebar.markdown("Set your API keys:")
111
- st.sidebar.code("export GROQ_API_KEY='your-key'")
112
-
113
  st.sidebar.markdown("---")
114
  st.sidebar.markdown("### πŸ“– GEO Metrics")
115
  st.sidebar.markdown("**AI Search Visibility**: How likely AI engines will surface your content")
@@ -148,19 +143,19 @@ class GEOSEOApp:
148
  "Select GEO Optimization Type:",
149
  options=[
150
  "geo_standard",
151
- "competitive_geo",
152
- "geo_readability",
153
- "geo_entity_extraction",
154
- "geo_variations",
155
- "geo_batch_optimize"
156
  ],
157
  format_func=lambda x: {
158
  "geo_standard": "πŸ”§ Standard GEO Enhancement",
159
- "competitive_geo": "πŸ“Š Competitive GEO Analysis",
160
- "geo_readability": "πŸ“– GEO Readability Analysis",
161
- "geo_entity_extraction": "🏷️ GEO Entity Extraction",
162
- "geo_variations": "πŸ”„ GEO Content Variations",
163
- "geo_batch_optimize": "πŸ“¦ Batch GEO Optimization"
164
  }[x],
165
  index=0,
166
  help="Choose the type of GEO optimization powered by RAG analysis"
@@ -171,14 +166,14 @@ class GEOSEOApp:
171
  if optimization_type in ["geo_standard", "competitive_geo"]:
172
  analyze_only = st.checkbox("Analysis only (no rewriting)", value=False)
173
  include_rag_context = st.checkbox("Include RAG context details", value=True)
174
- elif optimization_type == "geo_variations":
175
- num_variations = st.slider("Number of variations", min_value=1, max_value=3, value=2)
176
- analyze_only = False
177
- include_rag_context = True
178
- elif optimization_type == "geo_batch_optimize":
179
- st.info("For batch optimization, separate multiple content pieces with '---' divider")
180
- analyze_only = False
181
- include_rag_context = True
182
  else:
183
  analyze_only = False
184
  include_rag_context = True
@@ -186,11 +181,11 @@ class GEOSEOApp:
186
  # Show description based on optimization type
187
  optimization_descriptions = {
188
  "geo_standard": "πŸ”§ RAG-enhanced GEO optimization focusing on AI search visibility, conversational readiness, and citation worthiness using knowledge base guidance.",
189
- "competitive_geo": "πŸ“Š Competitive GEO analysis against best practices with gap identification and actionable recommendations using RAG context.",
190
- "geo_readability": "πŸ“– Detailed readability analysis specifically optimized for AI systems and LLM consumption patterns.",
191
- "geo_entity_extraction": "🏷️ AI-powered extraction of key entities, topics, and concepts relevant for GEO optimization.",
192
- "geo_variations": "πŸ”„ Generate multiple GEO-optimized variations (FAQ, conversational, authoritative) using RAG knowledge.",
193
- "geo_batch_optimize": "πŸ“¦ Process multiple content pieces simultaneously with consistent GEO optimization."
194
  }
195
 
196
  st.info(f"**{optimization_descriptions[optimization_type]}**")
 
105
  st.sidebar.markdown("- 🌐 Website GEO Analysis")
106
  st.sidebar.markdown("- πŸ“Š AI-First SEO Scoring")
107
 
 
 
 
 
 
108
  st.sidebar.markdown("---")
109
  st.sidebar.markdown("### πŸ“– GEO Metrics")
110
  st.sidebar.markdown("**AI Search Visibility**: How likely AI engines will surface your content")
 
143
  "Select GEO Optimization Type:",
144
  options=[
145
  "geo_standard",
146
+ # "competitive_geo",
147
+ # "geo_readability",
148
+ # "geo_entity_extraction",
149
+ # "geo_variations",
150
+ # "geo_batch_optimize"
151
  ],
152
  format_func=lambda x: {
153
  "geo_standard": "πŸ”§ Standard GEO Enhancement",
154
+ # "competitive_geo": "πŸ“Š Competitive GEO Analysis",
155
+ # "geo_readability": "πŸ“– GEO Readability Analysis",
156
+ # "geo_entity_extraction": "🏷️ GEO Entity Extraction",
157
+ # "geo_variations": "πŸ”„ GEO Content Variations",
158
+ # "geo_batch_optimize": "πŸ“¦ Batch GEO Optimization"
159
  }[x],
160
  index=0,
161
  help="Choose the type of GEO optimization powered by RAG analysis"
 
166
  if optimization_type in ["geo_standard", "competitive_geo"]:
167
  analyze_only = st.checkbox("Analysis only (no rewriting)", value=False)
168
  include_rag_context = st.checkbox("Include RAG context details", value=True)
169
+ # elif optimization_type == "geo_variations":
170
+ # num_variations = st.slider("Number of variations", min_value=1, max_value=3, value=2)
171
+ # analyze_only = False
172
+ # include_rag_context = True
173
+ # elif optimization_type == "geo_batch_optimize":
174
+ # st.info("For batch optimization, separate multiple content pieces with '---' divider")
175
+ # analyze_only = False
176
+ # include_rag_context = True
177
  else:
178
  analyze_only = False
179
  include_rag_context = True
 
181
  # Show description based on optimization type
182
  optimization_descriptions = {
183
  "geo_standard": "πŸ”§ RAG-enhanced GEO optimization focusing on AI search visibility, conversational readiness, and citation worthiness using knowledge base guidance.",
184
+ # "competitive_geo": "πŸ“Š Competitive GEO analysis against best practices with gap identification and actionable recommendations using RAG context.",
185
+ # "geo_readability": "πŸ“– Detailed readability analysis specifically optimized for AI systems and LLM consumption patterns.",
186
+ # "geo_entity_extraction": "🏷️ AI-powered extraction of key entities, topics, and concepts relevant for GEO optimization.",
187
+ # "geo_variations": "πŸ”„ Generate multiple GEO-optimized variations (FAQ, conversational, authoritative) using RAG knowledge.",
188
+ # "geo_batch_optimize": "πŸ“¦ Process multiple content pieces simultaneously with consistent GEO optimization."
189
  }
190
 
191
  st.info(f"**{optimization_descriptions[optimization_type]}**")