on1onmangoes commited on
Commit
74ba81a
1 Parent(s): ad19d22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -127,8 +127,8 @@ def process_pdf(pdf_file, client_name):
127
  # return client.predict(query=query, api_name="/search_with_confidence")
128
 
129
  # Function to handle RAG API call
130
- def rag_api(question):
131
- return client.predict(question=question,selected_document=answer_with_rag_select_client_dropdown, api_name="/get_answer")
132
 
133
  def delete_index():
134
  result = client.predict(api_name="/delete_index")
 
127
  # return client.predict(query=query, api_name="/search_with_confidence")
128
 
129
  # Function to handle RAG API call
130
+ def rag_api(question, client_name):
131
+ return client.predict(question=question,selected_document=client_name, api_name="/get_answer")
132
 
133
  def delete_index():
134
  result = client.predict(api_name="/delete_index")