on1onmangoes commited on
Commit
4bea675
·
verified ·
1 Parent(s): b96e1f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
  from gradio_client import Client, handle_file
3
  import os
4
 
 
5
  # Define your Hugging Face token (make sure to set it as an environment variable)
6
  HF_TOKEN = os.getenv("HF_TOKEN") # Replace with your actual token if not using an environment variable
7
 
@@ -125,7 +126,7 @@ def process_pdf(pdf_file, client_name):
125
 
126
  # Function to handle RAG API call
127
  def rag_api(question):
128
- return client.predict(question=question, api_name="/run_graph")
129
 
130
  def delete_index():
131
  result = client.predict(api_name="/delete_index")
 
2
  from gradio_client import Client, handle_file
3
  import os
4
 
5
+
6
  # Define your Hugging Face token (make sure to set it as an environment variable)
7
  HF_TOKEN = os.getenv("HF_TOKEN") # Replace with your actual token if not using an environment variable
8
 
 
126
 
127
  # Function to handle RAG API call
128
  def rag_api(question):
129
+ return client.predict(question=question,answer_with_rag_select_client_dropdown, api_name="/run_graph_with_namespace")
130
 
131
  def delete_index():
132
  result = client.predict(api_name="/delete_index")