Spaces:
Sleeping
Sleeping
UPDATE: listChatbot
Browse files
app.py
CHANGED
@@ -516,7 +516,7 @@ async def listChatbotSources(vectorstore: str):
|
|
516 |
@app.post("/deleteChatbotSource")
|
517 |
async def deleteChatbotSource(dataSourceName: str):
|
518 |
response = supabase.table("ConversAI_ChatbotDataSources").delete().eq("dataSourceName", dataSourceName).execute()
|
519 |
-
response = supabase.storage.from_('ConversAI_ChatbotDataSources').remove(dataSourceName)
|
520 |
return {
|
521 |
"output": "SUCCESS"
|
522 |
}
|
|
|
516 |
@app.post("/deleteChatbotSource")
|
517 |
async def deleteChatbotSource(dataSourceName: str):
|
518 |
response = supabase.table("ConversAI_ChatbotDataSources").delete().eq("dataSourceName", dataSourceName).execute()
|
519 |
+
response = supabase.storage.from_('ConversAI_ChatbotDataSources').remove(f"{dataSourceName}_data.json")
|
520 |
return {
|
521 |
"output": "SUCCESS"
|
522 |
}
|