rwitz commited on
Commit
c872b22
·
verified ·
1 Parent(s): afe7545

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,logic problems,creative writing,factual knowledge",
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["elo_ratings5"]
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