AashitaK commited on
Commit
55c74f4
·
verified ·
1 Parent(s): fbca0e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -75,13 +75,6 @@ def construct_prompt(question: str, context_embeddings: dict, df: pd.DataFrame)
75
  link = df.loc[chosen_service].link
76
  return header + message + "\n* " + "\n\nContext:\n" + service_description + "\n\n Q: " + question + "\n A:", link
77
 
78
- prompt = construct_prompt(
79
- "How many iClickers are there?",
80
- document_embeddings,
81
- df
82
- )
83
- print(prompt)
84
-
85
  def answer_query_with_context(
86
  query: str,
87
  df: pd.DataFrame,
@@ -110,8 +103,6 @@ def answer_query_with_context(
110
 
111
  return reply
112
 
113
- answer_query_with_context("How to install Matlab?", df, document_embeddings)
114
-
115
  def chatbot(input):
116
  try:
117
  if input:
 
75
  link = df.loc[chosen_service].link
76
  return header + message + "\n* " + "\n\nContext:\n" + service_description + "\n\n Q: " + question + "\n A:", link
77
 
 
 
 
 
 
 
 
78
  def answer_query_with_context(
79
  query: str,
80
  df: pd.DataFrame,
 
103
 
104
  return reply
105
 
 
 
106
  def chatbot(input):
107
  try:
108
  if input: