Severian commited on
Commit
aa8b4ff
·
1 Parent(s): 77caa3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,11 +9,11 @@ ANIMA (Advanced Nature Inspired Multidisciplinary Assistant) is an expert in var
9
  """
10
 
11
  model_path = "Severian/ANIMA-Phi-Neptune-Mistral-7B-gguf"
12
- model_name = "anima-phi-neptune-mistral-7b.Q2_K.gguf"
13
  hf_hub_download(repo_id="Severian/ANIMA-Phi-Neptune-Mistral-7B-gguf", filename=model_name, local_dir=model_path, local_dir_use_symlinks=True)
14
 
15
  print("Start the model init process")
16
- model = model = GPT4All(model_name, model_path, allow_download = True, device="cpu")
17
  print("Finish the model init process")
18
 
19
  model.config["promptTemplate"] = "[INST] {0} [/INST]"
@@ -94,4 +94,4 @@ with gr.Blocks(css="resourse/style/custom.css") as demo:
94
  iface.render()
95
 
96
  if __name__ == "__main__":
97
- demo.queue(max_size=3).launch()
 
9
  """
10
 
11
  model_path = "Severian/ANIMA-Phi-Neptune-Mistral-7B-gguf"
12
+ model_name = "anima-phi-neptune-mistral-7b.Q4_K_M.gguf"
13
  hf_hub_download(repo_id="Severian/ANIMA-Phi-Neptune-Mistral-7B-gguf", filename=model_name, local_dir=model_path, local_dir_use_symlinks=True)
14
 
15
  print("Start the model init process")
16
+ model = model = GPT4All(model_name, model_path, allow_download = True, device="gpu")
17
  print("Finish the model init process")
18
 
19
  model.config["promptTemplate"] = "[INST] {0} [/INST]"
 
94
  iface.render()
95
 
96
  if __name__ == "__main__":
97
+ demo.queue(max_size=3).launch(server_name="0.0.0.0")