Spaces:
Sleeping
Sleeping
UPDATE: listChatbot
Browse files
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
|
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
|
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 |
|