heikowagner commited on
Commit
4b9b11a
1 Parent(s): 10f1053
Files changed (2) hide show
  1. Dockerfile +5 -1
  2. app/playground/st_render_doc.py +9 -0
Dockerfile CHANGED
@@ -13,7 +13,11 @@ RUN --mount=type=secret,id=OPENAI_API_KEY \
13
  RUN python run.py
14
  RUN mkdir /.cache
15
  RUN chmod 777 /.cache
16
-
 
 
 
 
17
  CMD ["streamlit", "run", "app.py", "--server.port=7860"]
18
  #CMD ls -la
19
  EXPOSE 7860
 
13
  RUN python run.py
14
  RUN mkdir /.cache
15
  RUN chmod 777 /.cache
16
+ RUN /nltk_data
17
+ RUN chmod 777 /nltk_data
18
+ RUN /VectorStore
19
+ RUN chmod 777 /VectorStore
20
+
21
  CMD ["streamlit", "run", "app.py", "--server.port=7860"]
22
  #CMD ls -la
23
  EXPOSE 7860
app/playground/st_render_doc.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import utils as ut
3
+ import cloudpickle
4
+
5
+ filename="./result.pkl"
6
+ pikd = open(filename, "rb")
7
+ result = dict( cloudpickle.load(pikd) )
8
+ del pikd
9
+ ut.format_result_set(result)