alexkueck commited on
Commit
fc3ff31
·
verified ·
1 Parent(s): 1fac396

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -4,7 +4,6 @@ import gradio as gr
4
  import time
5
  import re
6
  import io
7
- import pickle
8
  #from PIL import Image, ImageDraw, ImageOps, ImageFont
9
  #import base64
10
  import tempfile
@@ -269,17 +268,7 @@ def generate_text (prompt, chatbot, history, retriever, top_p=0.6, temperature=0
269
  raise gr.Error(e)
270
  return result, False
271
 
272
- ########################################################
273
- #Vektorstore speichern - bzw. laden
274
- def save_vectorstore(vectorstore, filename="vectorstore.pkl"):
275
- with open(filename, "wb") as f:
276
- pickle.dump(vectorstore, f)
277
-
278
- def load_vectorstore(filename="vectorstore.pkl"):
279
- if os.path.exists(filename):
280
- with open(filename, "rb") as f:
281
- return pickle.load(f)
282
- return None
283
 
284
  ##############################################################
285
  #Eingaben der GUI verarbeiten
 
4
  import time
5
  import re
6
  import io
 
7
  #from PIL import Image, ImageDraw, ImageOps, ImageFont
8
  #import base64
9
  import tempfile
 
268
  raise gr.Error(e)
269
  return result, False
270
 
271
+
 
 
 
 
 
 
 
 
 
 
272
 
273
  ##############################################################
274
  #Eingaben der GUI verarbeiten