Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
163 |
-
|
164 |
-
return
|
|
|
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
|