File size: 1,294 Bytes
81dfba0
 
 
 
 
 
 
 
 
 
 
 
 
 
8893e9c
81dfba0
 
 
 
36cc132
 
e253d85
81dfba0
fc70d64
e0e99cc
 
 
cf37733
81dfba0
efe5a31
81dfba0
 
b0bef44
 
a1bb3f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
import gspread
from oauth2client.service_account import ServiceAccountCredentials

# Read the authentication token from the environment variable
hugging_face_token = os.getenv("HUGGING_FACE_TOKEN")

# Google Sheets configuration
def init_google_sheets_client():
    scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
    creds = ServiceAccountCredentials.from_json_keyfile_name('tokyo-portal-326513-90aee094bab9.json', scope)
    return gspread.authorize(creds)

# Google Sheets name
google_sheets_name = "Chatbot Test"

# Define available models
models = {
    "Meta-Llama-3-8B-Instruct": "meta-llama/Meta-Llama-3-8B-Instruct",
    "Llama-2-7B-Chat": "meta-llama/Llama-2-7b-chat-hf",
    "Yi-6B-Chat": "01-ai/Yi-6B-Chat",
    "Qwen2-7B-Instruct": "Qwen/Qwen2-7B-Instruct"
}
# List of models fine-tuned in 4-bit or 8-bit
quantized_models = {
    "Llama-3-8B-Finetuning-Stories": "rodrisouza/Llama-3-8B-Finetuning-Stories",
}

# Default model name
default_model_name = "Meta-Llama-3-8B-Instruct"

# Define available user names
user_names = ["Laura Musto", "Brian Carpenter", "Germán Capdehourat", "Isabel Amigo", "Aiala Rosá", "Luis Chiruzzo", "Igancio Sastre", "Santiago Góngora", "Ignacio Remersaro", "Rodrigo Souza"]

MAX_INTERACTIONS = 5