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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -36,11 +36,14 @@ def generate_article(prompt, progress=gr.Progress(track_tqdm=True)):
36
  do_generate_article=True,
37
  do_polish_article=True,
38
  )
39
- print(response)
40
  runner.post_run()
41
  runner.summary()
 
 
 
42
 
43
  with gr.Blocks() as demo:
 
44
  prompt = gr.Textbox(label="Prompt")
45
  output = gr.Markdown(label="Output")
46
  btn = gr.Button("Generate")
 
36
  do_generate_article=True,
37
  do_polish_article=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
 
45
  with gr.Blocks() as demo:
46
+ gr.Markdown("# Omnipedia article generation demo")
47
  prompt = gr.Textbox(label="Prompt")
48
  output = gr.Markdown(label="Output")
49
  btn = gr.Button("Generate")