rodrisouza commited on
Commit
81dfba0
verified
1 Parent(s): 58cb3d4

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +27 -0
config.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import gspread
3
+ from oauth2client.service_account import ServiceAccountCredentials
4
+
5
+ # Read the authentication token from the environment variable
6
+ hugging_face_token = os.getenv("HUGGING_FACE_TOKEN")
7
+
8
+ # Google Sheets configuration
9
+ def init_google_sheets_client():
10
+ scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
11
+ creds = ServiceAccountCredentials.from_json_keyfile_name('tokyo-portal-326513-90aee094bab9.json', scope)
12
+ return gspread.authorize(creds)
13
+
14
+ # Google Sheets name
15
+ google_sheets_name = "Chatbot Test"
16
+
17
+ # Define available models
18
+ models = {
19
+ "Meta-Llama-3-8B-Instruct": "meta-llama/Meta-Llama-3-8B-Instruct",
20
+ "Llama-2-7B-Chat": "meta-llama/Llama-2-7b-chat-hf"
21
+ }
22
+
23
+ # Default model name
24
+ default_model_name = "Llama-2-7B-Chat"
25
+
26
+ # Define available user names
27
+ user_names = ["Laura Musto", "Brian Carpenter", "Germ谩n Capdehourat", "Isabel Amigo", "Aiala Ros谩", "Luis Chiruzzo", "Igancio Sastre", "Santiago G贸ngora", "Ignacio Remersaro", "Rodrigo Souza"]