pabloce commited on
Commit
8bdc23a
·
verified ·
1 Parent(s): cf6a52f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -4,17 +4,8 @@ import subprocess
4
  import gradio as gr
5
  from huggingface_hub import hf_hub_download
6
 
7
-
8
- # from llama_index.core.llms import ChatMessage, MessageRole
9
- # from llama_index.llms.llama_cpp import LlamaCPP
10
- # from llama_index.llms.llama_cpp.llama_utils import (
11
- # messages_to_prompt,
12
- # completion_to_prompt,
13
- # )
14
- # from llama_index.core.memory import ChatMemoryBuffer
15
-
16
  subprocess.run('pip install llama-cpp-python==0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124', shell=True)
17
- subprocess.run('pip install llama-cpp-agent', shell=True)
18
 
19
  hf_hub_download(repo_id="TheBloke/Mistral-7B-Instruct-v0.2-GGUF", filename="mistral-7b-instruct-v0.2.Q6_K.gguf", local_dir = "./models")
20
 
 
4
  import gradio as gr
5
  from huggingface_hub import hf_hub_download
6
 
 
 
 
 
 
 
 
 
 
7
  subprocess.run('pip install llama-cpp-python==0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124', shell=True)
8
+ subprocess.run('pip install llama-cpp-agent==0.2.8', shell=True)
9
 
10
  hf_hub_download(repo_id="TheBloke/Mistral-7B-Instruct-v0.2-GGUF", filename="mistral-7b-instruct-v0.2.Q6_K.gguf", local_dir = "./models")
11