Priyanka-Kumavat-At-TE commited on
Commit
afe5c52
1 Parent(s): 327652b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import numpy as np
4
  import streamlit as st
5
  from sentence_transformers import SentenceTransformer, util
6
 
7
- st.title("Semantic-Search-Transformer")
8
 
9
  # Importing the Data
10
  df = pd.read_csv('medium_articles.csv')
@@ -38,7 +38,7 @@ query = st.text_input('Enter your query here','Artificial Intelligence')
38
  # top_sent = int(input("Enter the number of similarity sentences you want: "))
39
  top_k = st.number_input('How many results do you want to see?',min_value= 2)
40
 
41
- if st.button("Search"):
42
  prediction(query,top_k,all_embeddings,df)
43
 
44
 
 
4
  import streamlit as st
5
  from sentence_transformers import SentenceTransformer, util
6
 
7
+ st.title("Semantic-Search-Using-Transformer")
8
 
9
  # Importing the Data
10
  df = pd.read_csv('medium_articles.csv')
 
38
  # top_sent = int(input("Enter the number of similarity sentences you want: "))
39
  top_k = st.number_input('How many results do you want to see?',min_value= 2)
40
 
41
+ if st.button("Click to Search"):
42
  prediction(query,top_k,all_embeddings,df)
43
 
44