kz209 commited on
Commit
f743106
1 Parent(s): 717032b
Files changed (1) hide show
  1. pages/summarization_example.py +2 -2
pages/summarization_example.py CHANGED
@@ -36,7 +36,7 @@ def generate_answer(sources, model_name, prompt):
36
 
37
  meta_prompt = prompt
38
  content = meta_prompt.format(sources=sources)
39
- answer = model.gen(content)
40
 
41
  return answer
42
 
@@ -69,7 +69,7 @@ summarization: """, label='Input Prompting Template', lines=8, placeholder='Inpu
69
  output = gr.Markdown()
70
 
71
  example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
72
- submit_button.click(process_input, inputs=[input_text, model[model_dropdown], Template_text], outputs=[output])
73
 
74
  return demo
75
 
 
36
 
37
  meta_prompt = prompt
38
  content = meta_prompt.format(sources=sources)
39
+ answer = model[model_name].gen(content)
40
 
41
  return answer
42
 
 
69
  output = gr.Markdown()
70
 
71
  example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
72
+ submit_button.click(process_input, inputs=[input_text, model_dropdown, Template_text], outputs=[output])
73
 
74
  return demo
75