Spaces:
Paused
Paused
update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
# import fitz # PyMuPDF for extracting text from PDFs
|
3 |
from langchain.embeddings import HuggingFaceEmbeddings
|
|
|
1 |
+
import os
|
2 |
+
os.system("langchain upgrade-imports")
|
3 |
+
os.system("pip install accelerate")
|
4 |
+
os.system("pip install -i https://pypi.org/simple/ bitsandbytes")
|
5 |
+
|
6 |
import gradio as gr
|
7 |
# import fitz # PyMuPDF for extracting text from PDFs
|
8 |
from langchain.embeddings import HuggingFaceEmbeddings
|