multimodalart HF staff commited on
Commit
5947c02
·
verified ·
1 Parent(s): 16d2859

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -38,7 +38,9 @@ def generate_article(prompt, progress=gr.Progress(track_tqdm=True)):
38
  )
39
  runner.post_run()
40
  runner.summary()
41
- with open(f'{prompt.replace(" ", "_")}/storm_gen_article.txt', 'r') as file:
 
 
42
  content = file.read()
43
  return content
44
 
 
38
  )
39
  runner.post_run()
40
  runner.summary()
41
+ print(os.listdir())
42
+ generated_folder = prompt.replace(" ", "_")
43
+ with open(f'{generated_folder}/storm_gen_article.txt', 'r') as file:
44
  content = file.read()
45
  return content
46