Spaces:
Sleeping
Sleeping
DEBUG: QA Pair
Browse files
app.py
CHANGED
@@ -324,7 +324,7 @@ class AddQAPair(BaseModel):
|
|
324 |
|
325 |
|
326 |
@app.post("/addQAPair")
|
327 |
-
async def
|
328 |
username, chatbotname = addQaPair.vectorstore.split("$")[1], addQaPair.vectorstore.split("$")[2]
|
329 |
df = pd.DataFrame(supabase.table("ConversAI_ChatbotInfo").select("*").execute().data)
|
330 |
currentCount = df[(df["user_id"] == username) & (df["chatbotname"] == chatbotname)]["charactercount"].iloc[0]
|
|
|
324 |
|
325 |
|
326 |
@app.post("/addQAPair")
|
327 |
+
async def addQAPairData(addQaPair: AddQAPair):
|
328 |
username, chatbotname = addQaPair.vectorstore.split("$")[1], addQaPair.vectorstore.split("$")[2]
|
329 |
df = pd.DataFrame(supabase.table("ConversAI_ChatbotInfo").select("*").execute().data)
|
330 |
currentCount = df[(df["user_id"] == username) & (df["chatbotname"] == chatbotname)]["charactercount"].iloc[0]
|