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