How to reset string in textarea by reset button?

i’m working on a book recommendation system. i have two inputboxes and a submit button and a reset button. when i click on a reset button i return ’ ’ to textarea to reset the string. but when i enter another movie name and press the submit button again then it displays movies name appended with previous movies name i.e. the textarea retains its value even after resetting its value with ’ ’ . plz help me.



here is my code:

@app.callback(Output('textarea','value'),
        [Input('submit_button','n_clicks'),], 
         #Input('reset_button','n_clicks')],
        [State('input-1-state', 'value')]
        )
def update_output(submitbtn, value):
    if submitbtn is None:
        raise PreventUpdate
    else:
        if(value!=''):
            try:
                return str(print_similar_books(value))
            except IndexError:
                return str(list(get_id_from_partial_name(value)))
        elif(value==''):
            return str('')
                
@app.callback([Output('input-1-state','value'),
               Output('input-2-state','value')],
             [Input('reset_button','n_clicks')])
def update(n_clicks):
    if n_clicks is None:
        raise PreventUpdate
    else:
        return ['','']

if __name__ == '__main__':
    app.run_server(debug=True)