Spaces:
Runtime error
Runtime error
on1onmangoes
commited on
Commit
•
74ba81a
1
Parent(s):
ad19d22
Update app.py
Browse files
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=
|
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")
|