Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ async def classify_vote(user_input):
|
|
21 |
payload = {
|
22 |
"inputs": user_input,
|
23 |
"parameters": {
|
24 |
-
"candidate_labels": "roleplay,conversation,mathematics calculations
|
25 |
}
|
26 |
}
|
27 |
async with aiohttp.ClientSession() as session:
|
@@ -51,7 +51,7 @@ password=os.environ.get("MONGODB")
|
|
51 |
def init_database():
|
52 |
uri = f"mongodb+srv://new-user:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
53 |
client = MongoClient(uri)
|
54 |
-
db = client["
|
55 |
collection = db["elo_ratings"]
|
56 |
return collection
|
57 |
|
|
|
21 |
payload = {
|
22 |
"inputs": user_input,
|
23 |
"parameters": {
|
24 |
+
"candidate_labels": "character roleplay,small talk conversation,mathematics calculations and logic,creative writing,factual knowledge",
|
25 |
}
|
26 |
}
|
27 |
async with aiohttp.ClientSession() as session:
|
|
|
51 |
def init_database():
|
52 |
uri = f"mongodb+srv://new-user:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
53 |
client = MongoClient(uri)
|
54 |
+
db = client["elo_ratings6"]
|
55 |
collection = db["elo_ratings"]
|
56 |
return collection
|
57 |
|