AFischer1985 commited on
Commit
751c1e6
1 Parent(s): 9dd267d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,8 +1,12 @@
1
  from llama_cpp.server.app import create_app, Settings
2
  from fastapi.responses import HTMLResponse
3
  import os
 
4
 
5
- urlretrieve("https://huggingface.co/TheBloke/OpenHermes-2-Mistral-7B-GGUF/resolve/main/openhermes-2-mistral-7b.Q4_0.gguf", "./model.gguf")
 
 
 
6
 
7
  app = create_app(
8
  Settings(
 
1
  from llama_cpp.server.app import create_app, Settings
2
  from fastapi.responses import HTMLResponse
3
  import os
4
+ import requests
5
 
6
+ url="https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GGUF/resolve/main/wizardlm-13b-v1.2.Q4_0.gguf"
7
+ response = requests.get(url)
8
+ with open("./model.gguf", mode="wb") as file:
9
+ file.write(response.content)
10
 
11
  app = create_app(
12
  Settings(