ECUiVADE commited on
Commit
f62ed40
1 Parent(s): aac8de6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,6 @@ chat_log_name =""
64
  from llama_cpp import Llama
65
  llm = Llama(model_path=model_file, model_type="mistral",n_gpu_layers=-1,n_ctx = 2048)
66
 
67
- unique_id = generate_unique_id()
68
-
69
  def load_model():
70
  global llm
71
  llm = Llama(model_path=model_file, model_type="mistral",n_gpu_layers=-1,n_ctx = 2048)
@@ -78,6 +76,8 @@ def generate_unique_id():
78
  unique_id = letters + digits
79
  return unique_id
80
 
 
 
81
  def get_drive_service():
82
  credentials = service_account.Credentials.from_service_account_file(
83
  SERVICE_ACCOUNT_FILE, scopes=SCOPES)
 
64
  from llama_cpp import Llama
65
  llm = Llama(model_path=model_file, model_type="mistral",n_gpu_layers=-1,n_ctx = 2048)
66
 
 
 
67
  def load_model():
68
  global llm
69
  llm = Llama(model_path=model_file, model_type="mistral",n_gpu_layers=-1,n_ctx = 2048)
 
76
  unique_id = letters + digits
77
  return unique_id
78
 
79
+ unique_id = generate_unique_id()
80
+
81
  def get_drive_service():
82
  credentials = service_account.Credentials.from_service_account_file(
83
  SERVICE_ACCOUNT_FILE, scopes=SCOPES)