rchrdgwr commited on
Commit
8dd79e8
1 Parent(s): 4d94c46

add pmupdf to requirements

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  2. requirements.txt +2 -1
app.py CHANGED
@@ -11,6 +11,7 @@ from aimakerspace.openai_utils.embedding import EmbeddingModel
11
  from aimakerspace.vectordatabase import VectorDatabase
12
  from aimakerspace.openai_utils.chatmodel import ChatOpenAI
13
  import chainlit as cl
 
14
 
15
  system_template = """\
16
  Use the following context to answer a users question. If you cannot find the answer in the context, say you don't know the answer."""
@@ -52,8 +53,6 @@ text_splitter = CharacterTextSplitter()
52
 
53
  def process_text_file(file: AskFileResponse):
54
  import tempfile
55
- import fitz
56
- import os
57
 
58
  file_extension = os.path.splitext(file.name)[1].lower()
59
 
 
11
  from aimakerspace.vectordatabase import VectorDatabase
12
  from aimakerspace.openai_utils.chatmodel import ChatOpenAI
13
  import chainlit as cl
14
+ import fitz
15
 
16
  system_template = """\
17
  Use the following context to answer a users question. If you cannot find the answer in the context, say you don't know the answer."""
 
53
 
54
  def process_text_file(file: AskFileResponse):
55
  import tempfile
 
 
56
 
57
  file_extension = os.path.splitext(file.name)[1].lower()
58
 
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  numpy
2
  chainlit==0.7.700
3
- openai
 
 
1
  numpy
2
  chainlit==0.7.700
3
+ openai
4
+ pymupdf