on1onmangoes commited on
Commit
1b0b94c
·
verified ·
1 Parent(s): 897acf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -159,9 +159,10 @@ def refresh_graph_index(index_name=index_name):
159
  return index, vectorstore
160
 
161
  def delete_index():
162
- #pc.delete_index(index_name)
163
- #index, vectorstore = refresh_graph_index(index_name)
164
- return "Delete & Refresh Sucessful "
 
165
 
166
 
167
  # Title for the application
 
159
  return index, vectorstore
160
 
161
  def delete_index():
162
+ client = Client("on1onmangoes/cnianswer101724v3")
163
+ result = client.predict(api_name="/delete_index")
164
+ return result
165
+
166
 
167
 
168
  # Title for the application