Spaces:
Running
Running
Commit
β’
b1d30b9
1
Parent(s):
d8cfc05
Update pages/Create_Model.py
Browse files- pages/Create_Model.py +13 -12
pages/Create_Model.py
CHANGED
@@ -38,20 +38,21 @@ st.set_page_config(
|
|
38 |
)
|
39 |
|
40 |
st.header("π€ Create BERTopic")
|
41 |
-
st.subheader("Use this page to create a model with your data")
|
42 |
|
43 |
-
model_name = st.text_input("Please enter a name for the new model (e.g., 'ukraine_war_jan5')")
|
44 |
-
df_name = st.text_input("Please enter data file path (e.g., 'data/df.csv')")
|
45 |
-
language = st.radio("Please pick one language that best describes your data", ["English","Russian/Ukrainian","Other"],horizontal=True)
|
46 |
-
text_col = st.text_input("Text column name (exactly as appears in the csv)")
|
47 |
-
date_col = st.text_input("Date column name (exactly as appears in the csv)")
|
48 |
-
datetime_format = st.text_input("Please enter the date format (e.g., '%d.%m.%Y')", value="")
|
49 |
-
st.session_state.datetime_format = None if datetime_format == "" else datetime_format
|
50 |
-
embs_name = st.text_input("Please enter embedding file path if any (e.g., 'data/embs.csv')")
|
51 |
-
sample = st.slider("Percent of data to use", 0, 100, 25)
|
52 |
-
emotions_yes = st.checkbox("Get emotions")
|
53 |
|
54 |
-
if
|
|
|
55 |
|
56 |
from sentence_transformers import SentenceTransformer
|
57 |
# https://www.sbert.net/docs/pretrained_models.html#multi-lingual-models
|
|
|
38 |
)
|
39 |
|
40 |
st.header("π€ Create BERTopic")
|
41 |
+
#st.subheader("Use this page to create a model with your data")
|
42 |
|
43 |
+
#model_name = st.text_input("Please enter a name for the new model (e.g., 'ukraine_war_jan5')")
|
44 |
+
#df_name = st.text_input("Please enter data file path (e.g., 'data/df.csv')")
|
45 |
+
#language = st.radio("Please pick one language that best describes your data", ["English","Russian/Ukrainian","Other"],horizontal=True)
|
46 |
+
#text_col = st.text_input("Text column name (exactly as appears in the csv)")
|
47 |
+
#date_col = st.text_input("Date column name (exactly as appears in the csv)")
|
48 |
+
#datetime_format = st.text_input("Please enter the date format (e.g., '%d.%m.%Y')", value="")
|
49 |
+
#st.session_state.datetime_format = None if datetime_format == "" else datetime_format
|
50 |
+
#embs_name = st.text_input("Please enter embedding file path if any (e.g., 'data/embs.csv')")
|
51 |
+
#sample = st.slider("Percent of data to use", 0, 100, 25)
|
52 |
+
#emotions_yes = st.checkbox("Get emotions")
|
53 |
|
54 |
+
if False:
|
55 |
+
#if st.button("Train new model"):
|
56 |
|
57 |
from sentence_transformers import SentenceTransformer
|
58 |
# https://www.sbert.net/docs/pretrained_models.html#multi-lingual-models
|