merve HF staff commited on
Commit
b8fdd0e
1 Parent(s): 0f0d66f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -57,10 +57,11 @@ def find_sentences(query):
57
  query_embedding = model.encode(query)
58
  hits = util.semantic_search(query_embedding, corpus_embeddings, top_k=1)
59
  hit = hits[0][0]
60
- print(hit)
61
  corpus_id = hit['corpus_id']
 
62
  saved = corpus[corpus_id]
63
- print(saved)
64
  # Find source document based on sentence index
65
  count = 0
66
  for idx, c in enumerate(sentence_count):
@@ -74,6 +75,7 @@ def find_sentences(query):
74
 
75
 
76
 
 
77
  message_history = [{"text":"Let's find out the best task for your use case! Tell me about your use case :)", "is_user":False}]
78
 
79
  st.subheader("If you don't know how to build your machine learning product for your use case, Taskmaster is here to help you! 🪄✨")
 
57
  query_embedding = model.encode(query)
58
  hits = util.semantic_search(query_embedding, corpus_embeddings, top_k=1)
59
  hit = hits[0][0]
60
+ message(hit)
61
  corpus_id = hit['corpus_id']
62
+ message(corpus_id)
63
  saved = corpus[corpus_id]
64
+ message(saved)
65
  # Find source document based on sentence index
66
  count = 0
67
  for idx, c in enumerate(sentence_count):
 
75
 
76
 
77
 
78
+
79
  message_history = [{"text":"Let's find out the best task for your use case! Tell me about your use case :)", "is_user":False}]
80
 
81
  st.subheader("If you don't know how to build your machine learning product for your use case, Taskmaster is here to help you! 🪄✨")