thinh111 commited on
Commit
387df4a
β€’
1 Parent(s): 75dfdbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -4,8 +4,10 @@ import gradio as gr
4
  from model import llm_chain_response, get_response_value
5
  from process_documents import create_db_from_files
6
 
7
- pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
8
- pip install --no-deps xformers "trl<0.9.0" peft accelerate bitsandbytes
 
 
9
 
10
  llm_chain = llm_chain_response()
11
 
 
4
  from model import llm_chain_response, get_response_value
5
  from process_documents import create_db_from_files
6
 
7
+ import subprocess
8
+
9
+ # Install unsloth
10
+ subprocess.run(["pip", "install", "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"])
11
 
12
  llm_chain = llm_chain_response()
13