Rauhan commited on
Commit
60ccf10
1 Parent(s): e5394ac

UPDATE: listChatbot

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -414,14 +414,14 @@ async def answerQuestion(query: str, vectorstore: str, llmModel: str = "llama3-7
414
 
415
 
416
  @app.post("/deleteChatbot")
417
- async def delete(chatbotName: str):
418
  username, chatbotName = chatbotName.split("$")[1], chatbotName.split("$")[2]
419
  supabase.table('ConversAI_ChatbotInfo').delete().eq('user_id', username).eq('chatbotname', chatbotName).execute()
420
  return deleteTable(tableName=chatbotName)
421
 
422
 
423
  @app.post("/listChatbots")
424
- async def delete(username: str):
425
  return listTables(username=username)
426
 
427
 
 
414
 
415
 
416
  @app.post("/deleteChatbot")
417
+ async def deleteChatbot(chatbotName: str):
418
  username, chatbotName = chatbotName.split("$")[1], chatbotName.split("$")[2]
419
  supabase.table('ConversAI_ChatbotInfo').delete().eq('user_id', username).eq('chatbotname', chatbotName).execute()
420
  return deleteTable(tableName=chatbotName)
421
 
422
 
423
  @app.post("/listChatbots")
424
+ async def listChatbots(username: str):
425
  return listTables(username=username)
426
 
427