Spaces:
Runtime error
Runtime error
tab3 to tab1 and tab1 to tab3 update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,6 @@ class GEOSEOApp:
|
|
| 48 |
self.embeddings = HuggingFaceEmbeddings(
|
| 49 |
model_name="sentence-transformers/all-MiniLM-L6-v2",
|
| 50 |
cache_folder="./hf_cache",
|
| 51 |
-
model_kwargs={"device": "cpu"} # <-- Add this line
|
| 52 |
)
|
| 53 |
|
| 54 |
def setup_parsers(self):
|
|
@@ -80,19 +79,19 @@ class GEOSEOApp:
|
|
| 80 |
|
| 81 |
# Main tabs
|
| 82 |
tab1, tab2, tab3 = st.tabs([
|
| 83 |
-
"
|
| 84 |
"π§ Content Enhancement",
|
| 85 |
-
"
|
| 86 |
])
|
| 87 |
|
| 88 |
with tab1:
|
| 89 |
-
self.
|
| 90 |
|
| 91 |
with tab2:
|
| 92 |
self.render_content_enhancement_tab()
|
| 93 |
|
| 94 |
with tab3:
|
| 95 |
-
self.
|
| 96 |
|
| 97 |
def render_sidebar(self):
|
| 98 |
"""Render sidebar with information and controls"""
|
|
|
|
| 48 |
self.embeddings = HuggingFaceEmbeddings(
|
| 49 |
model_name="sentence-transformers/all-MiniLM-L6-v2",
|
| 50 |
cache_folder="./hf_cache",
|
|
|
|
| 51 |
)
|
| 52 |
|
| 53 |
def setup_parsers(self):
|
|
|
|
| 79 |
|
| 80 |
# Main tabs
|
| 81 |
tab1, tab2, tab3 = st.tabs([
|
| 82 |
+
"π Website GEO Analysis",
|
| 83 |
"π§ Content Enhancement",
|
| 84 |
+
"π Document Q&A",
|
| 85 |
])
|
| 86 |
|
| 87 |
with tab1:
|
| 88 |
+
self.render_website_analysis_tab()
|
| 89 |
|
| 90 |
with tab2:
|
| 91 |
self.render_content_enhancement_tab()
|
| 92 |
|
| 93 |
with tab3:
|
| 94 |
+
self.render_document_qa_tab()
|
| 95 |
|
| 96 |
def render_sidebar(self):
|
| 97 |
"""Render sidebar with information and controls"""
|