on1onmangoes commited on
Commit
c3f14a1
1 Parent(s): 9b67b74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ def stream_chat_with_rag(
43
  # Call the API with the user's message
44
  question = message
45
  #answer = client.predict(question=question, api_name="/run_graph")
46
- answer = client.predict(question=question,selected_document=client_name, api_name="/run_graph_with_namespace")
47
 
48
  # Debugging: Print the raw response
49
  print("Raw answer from API:")
@@ -127,7 +127,7 @@ def process_pdf(pdf_file, client_name):
127
 
128
  # Function to handle RAG API call
129
  def rag_api(question):
130
- return client.predict(question=question,selected_document=answer_with_rag_select_client_dropdown, api_name="/run_graph_with_namespace")
131
 
132
  def delete_index():
133
  result = client.predict(api_name="/delete_index")
 
43
  # Call the API with the user's message
44
  question = message
45
  #answer = client.predict(question=question, api_name="/run_graph")
46
+ answer = client.predict(question=question,selected_document=client_name, api_name="/get_answer")
47
 
48
  # Debugging: Print the raw response
49
  print("Raw answer from API:")
 
127
 
128
  # Function to handle RAG API call
129
  def rag_api(question):
130
+ return client.predict(question=question,selected_document=answer_with_rag_select_client_dropdown, api_name="/get_answer")
131
 
132
  def delete_index():
133
  result = client.predict(api_name="/delete_index")