Rauhan commited on
Commit
f0248f7
1 Parent(s): 572d835

UPDATE: /getPublicChatbots

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -652,6 +652,10 @@ async def trainChatbot(trainChatbotConfig: TrainChatbot):
652
  texts = [(text, source) for text, source in zip(texts, sources)]
653
  return addDocuments(texts=texts, vectorstore=vectorstore)
654
 
 
 
 
 
655
 
656
  def get_ip_info(ip: str):
657
  try:
 
652
  texts = [(text, source) for text, source in zip(texts, sources)]
653
  return addDocuments(texts=texts, vectorstore=vectorstore)
654
 
655
+ @app.get("/getPublicChatbots")
656
+ async def getPublicChatbots():
657
+ return supabase.table("ConversAI_ChatbotInfo").select("*").eq("isPrivate", False).execute().data
658
+
659
 
660
  def get_ip_info(ip: str):
661
  try: