AashitaK commited on
Commit
22a77e1
·
verified ·
1 Parent(s): 1183f04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,9 +1,14 @@
1
  import gradio as gr
2
-
 
3
  from functions import answer_query_with_context
 
4
  df = pd.read_csv('services-links.csv')
5
  df = df.set_index("service")
6
 
 
 
 
7
  def chatbot(input):
8
  try:
9
  if input:
 
1
  import gradio as gr
2
+ import pandas as pd
3
+ import pickle
4
  from functions import answer_query_with_context
5
+
6
  df = pd.read_csv('services-links.csv')
7
  df = df.set_index("service")
8
 
9
+ with open(file_path, 'rb') as file:
10
+ document_embeddings = pickle.load(file)
11
+
12
  def chatbot(input):
13
  try:
14
  if input: