arithescientist commited on
Commit
24b60d3
·
1 Parent(s): c0a36c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -29,10 +29,10 @@ bert_legal_model = Summarizer(custom_model=custom_model, custom_tokenizer=custom
29
  from zipfile import ZipFile
30
 
31
  def zip_to_json(file_obj):
32
- with tempfile.TemporaryDirectory() as t_dir:
33
- os.path.join(t_dir, file_obj)
34
 
35
- return t_dir
36
 
37
  #def pdf(file_name):
38
 
 
29
  from zipfile import ZipFile
30
 
31
  def zip_to_json(file_obj):
32
+ with open(file_obj, 'w') as fh:
33
+ fh.write('<content>')
34
 
35
+ return fh
36
 
37
  #def pdf(file_name):
38