Spaces:
Runtime error
Runtime error
mlkorra commited on
Commit ·
957ad79
1
Parent(s): f263f40
Add userguide
Browse files- about/userguide.md +8 -0
- app.py +7 -2
about/userguide.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## **User Guide:**
|
| 2 |
+
|
| 3 |
+
Each startup in the state selected are represented by dots and colored based on state. Hovering over each dot will give the company name along with its categories. The startup input by the user is representated by a hexagon and is placed among similar ones based on the model's computational findings.
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
1. Particularly dense clusters are indication of a more competitive market segment.
|
| 7 |
+
2. Dots in isolation either indicates a untapped market or non viable market. The user needs to conduct additional market research for inferring what that segment means.
|
| 8 |
+
3. Stratified or linear groupings may result from firms uniquely applying a common core technology, such as data analytics.
|
app.py
CHANGED
|
@@ -21,6 +21,10 @@ from bertopic import BERTopic
|
|
| 21 |
import pickle
|
| 22 |
import os
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
def visualizer(prob_req, embed, df, index, company_name):
|
| 25 |
|
| 26 |
with st.spinner("Visualizing the results !!!"):
|
|
@@ -66,7 +70,7 @@ def preprocess(name, group, state, states_used, desc):
|
|
| 66 |
text = ' '.join(lemmatizer.lemmatize(w) for w in text.split(' '))
|
| 67 |
return text
|
| 68 |
|
| 69 |
-
@st.cache(persist=True,suppress_st_warning=True)
|
| 70 |
def load_topic_model(model_path, name, group, state, states_used, desc):
|
| 71 |
|
| 72 |
with st.spinner("Creating Topic Models ....."):
|
|
@@ -100,7 +104,8 @@ def app():
|
|
| 100 |
st.title("Competitive Analysis of Companies ")
|
| 101 |
|
| 102 |
check_examples = st.sidebar.checkbox("Try Examples!")
|
| 103 |
-
|
|
|
|
| 104 |
#companyname = st.text_input('Input company name here:', value="")
|
| 105 |
#companygrp = st.text_input('Input industry group here:', value="")
|
| 106 |
#companydesc = st.text_input("Input company description: (can be found in the company's linkedin page)", value="")
|
|
|
|
| 21 |
import pickle
|
| 22 |
import os
|
| 23 |
|
| 24 |
+
def read_markdown(path,parent='about/'):
|
| 25 |
+
with open(os.path.join(parent,path)) as f:
|
| 26 |
+
return f.read()
|
| 27 |
+
|
| 28 |
def visualizer(prob_req, embed, df, index, company_name):
|
| 29 |
|
| 30 |
with st.spinner("Visualizing the results !!!"):
|
|
|
|
| 70 |
text = ' '.join(lemmatizer.lemmatize(w) for w in text.split(' '))
|
| 71 |
return text
|
| 72 |
|
| 73 |
+
@st.cache(persist=True,suppress_st_warning=True,show_spinner=False)
|
| 74 |
def load_topic_model(model_path, name, group, state, states_used, desc):
|
| 75 |
|
| 76 |
with st.spinner("Creating Topic Models ....."):
|
|
|
|
| 104 |
st.title("Competitive Analysis of Companies ")
|
| 105 |
|
| 106 |
check_examples = st.sidebar.checkbox("Try Examples!")
|
| 107 |
+
|
| 108 |
+
st.markdown(read_markdown('userguide.md'))
|
| 109 |
#companyname = st.text_input('Input company name here:', value="")
|
| 110 |
#companygrp = st.text_input('Input industry group here:', value="")
|
| 111 |
#companydesc = st.text_input("Input company description: (can be found in the company's linkedin page)", value="")
|