dejanseo commited on
Commit
f39e1d1
·
verified ·
1 Parent(s): b9f49bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -50,6 +50,7 @@ INDEX_TO_CATEGORY = {v: f"[{k}] {CATEGORY_NAMES[k]}" for k, v in LABEL_MAPPING.i
50
  # Set Streamlit app title
51
  st.title("Google Taxonomy Classifier by DEJAN")
52
  st.write("Enter text in the input box, and the model will classify it into one of the 21 top level categories. This demo showcases early model capability while the full 5000+ label model is undergoing extensive training.")
 
53
 
54
  # Input text box
55
  input_text = st.text_area("Enter text for classification:")
@@ -91,6 +92,14 @@ if st.button("Classify"):
91
  ax.invert_yaxis() # Ensure highest probability is at the top
92
  ax.set_xlim(0, 1) # Set the x-axis range to 0-1 for probabilities
93
  st.pyplot(fig)
 
 
 
 
 
 
 
 
94
  else:
95
  st.error("Could not classify the text. Please try again.")
96
  else:
 
50
  # Set Streamlit app title
51
  st.title("Google Taxonomy Classifier by DEJAN")
52
  st.write("Enter text in the input box, and the model will classify it into one of the 21 top level categories. This demo showcases early model capability while the full 5000+ label model is undergoing extensive training.")
53
+ st.write("Works for product descriptions, search queries, articles, social media posts and broadly web text of any style. Suitable for classification pipelines of millions of queries.")
54
 
55
  # Input text box
56
  input_text = st.text_area("Enter text for classification:")
 
92
  ax.invert_yaxis() # Ensure highest probability is at the top
93
  ax.set_xlim(0, 1) # Set the x-axis range to 0-1 for probabilities
94
  st.pyplot(fig)
95
+
96
+ # Additional information at the end
97
+ st.divider()
98
+ st.markdown("""
99
+ Interested in using this in an automated pipeline for bulk link prediction?
100
+ Please [book an appointment](https://dejanmarketing.com/conference/) to discuss your needs.
101
+ """)
102
+
103
  else:
104
  st.error("Could not classify the text. Please try again.")
105
  else: