Artech15 commited on
Commit
484d4dc
·
verified ·
1 Parent(s): 947fc76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -16,12 +16,15 @@ supabase: Client = create_client(SUPABASE_URL, SUPABASE_KEY)
16
 
17
  # Use a smaller, efficient GPT4All model for free-tier compatibility
18
  # The model will be downloaded to the ./models directory if it doesn't exist.
19
- model_name = "ggml-gpt4all-v1.3-4b-snoozy.bin"
20
  model_path = "./models"
 
 
21
  if not os.path.exists(f"{model_path}/{model_name}"):
22
  print(f"Downloading {model_name}...")
23
  GPT4All(model_name, model_path=model_path, allow_download=True)
24
  model = GPT4All(model_name, model_path=model_path)
 
25
 
26
  # A simple in-memory cache to store user's memory for the current session.
27
  # This works for a free demo where data persistence across restarts isn't required.
 
16
 
17
  # Use a smaller, efficient GPT4All model for free-tier compatibility
18
  # The model will be downloaded to the ./models directory if it doesn't exist.
19
+ # ...
20
  model_path = "./models"
21
+ model_name = "ggml-gpt4all-v1.3-4b-snoozy.bin"
22
+
23
  if not os.path.exists(f"{model_path}/{model_name}"):
24
  print(f"Downloading {model_name}...")
25
  GPT4All(model_name, model_path=model_path, allow_download=True)
26
  model = GPT4All(model_name, model_path=model_path)
27
+ # ...
28
 
29
  # A simple in-memory cache to store user's memory for the current session.
30
  # This works for a free demo where data persistence across restarts isn't required.