lityops commited on
Commit
473fd38
·
verified ·
1 Parent(s): 1f9b6ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -47,7 +47,7 @@ custom_css = """
47
  footer {display: none !important;}
48
  """
49
 
50
- with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
51
  with gr.Column(elem_id="header"):
52
  gr.Markdown("# Style Summarizer")
53
  gr.Markdown("Fine-tuned Flan-T5 model for multi-style document summarization.")
@@ -70,8 +70,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
70
  output_box = gr.Textbox(
71
  label="Output Summary",
72
  lines=15,
73
- interactive=False,
74
- show_copy_button=True
75
  )
76
 
77
  submit_btn.click(
@@ -80,4 +79,4 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
80
  outputs=output_box
81
  )
82
 
83
- demo.launch()
 
47
  footer {display: none !important;}
48
  """
49
 
50
+ with gr.Blocks() as demo:
51
  with gr.Column(elem_id="header"):
52
  gr.Markdown("# Style Summarizer")
53
  gr.Markdown("Fine-tuned Flan-T5 model for multi-style document summarization.")
 
70
  output_box = gr.Textbox(
71
  label="Output Summary",
72
  lines=15,
73
+ interactive=False
 
74
  )
75
 
76
  submit_btn.click(
 
79
  outputs=output_box
80
  )
81
 
82
+ demo.launch(css=custom_css, theme=gr.themes.Base())