rayl-aoit commited on
Commit
387abf0
·
verified ·
1 Parent(s): 3313aa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,7 +111,7 @@ with playground:
111
  """)
112
 
113
  with gr.Column(scale=1):
114
- text_pipeline_button = gr.Button(value="Process")
115
  text_reset_button = gr.Button(value="Clear")
116
 
117
  with gr.Row():
@@ -129,7 +129,7 @@ with playground:
129
  ], inputs=[source_text], outputs=[summary_textoutput, translated_textbox], run_on_click=True, cache_examples=True, fn=summarize)
130
 
131
  text_pipeline_button.click(summarize, inputs=[source_text], outputs=[summary_textoutput, translated_textbox])
132
- text_reset_button.click(reset_input, outputs=[source_text])
133
 
134
  with gr.TabItem("Name Entity"):
135
  with gr.Row():
 
111
  """)
112
 
113
  with gr.Column(scale=1):
114
+ text_pipeline_button = gr.Button(value="Start Process", variant="primary")
115
  text_reset_button = gr.Button(value="Clear")
116
 
117
  with gr.Row():
 
129
  ], inputs=[source_text], outputs=[summary_textoutput, translated_textbox], run_on_click=True, cache_examples=True, fn=summarize)
130
 
131
  text_pipeline_button.click(summarize, inputs=[source_text], outputs=[summary_textoutput, translated_textbox])
132
+ text_reset_button.click(reset_input, outputs=[source_text,summary_textoutput,translated_textbox])
133
 
134
  with gr.TabItem("Name Entity"):
135
  with gr.Row():