Rauhan commited on
Commit
f176992
1 Parent(s): a413218

UPDATE: listChatbot

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
  }