john commited on
Commit
9d6e71f
1 Parent(s): d42e7fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,9 +3,9 @@ import wget
3
  import gradio as gr
4
  from llama_cpp import Llama
5
  import random
6
- wget https://huggingface.co/TheBloke/Nous-Hermes-13B-GGML/resolve/main/nous-hermes-13b.ggmlv3.q2_K.bin
7
-
8
- llm = Llama(model_path="nous-hermes-13b.ggmlv3.q2_K.bin", seed=random.randint(1, 2**31))
9
 
10
  with gr.Blocks() as demo:
11
  chatbot = gr.Chatbot()
 
3
  import gradio as gr
4
  from llama_cpp import Llama
5
  import random
6
+ url = 'https://huggingface.co/TheBloke/Nous-Hermes-13B-GGML/resolve/main/nous-hermes-13b.ggmlv3.q2_K.bin'
7
+ filename = wget.download(url)
8
+ llm = Llama(model_path=filename, seed=random.randint(1, 2**31))
9
 
10
  with gr.Blocks() as demo:
11
  chatbot = gr.Chatbot()