dishav2 commited on
Commit
a30a8fa
1 Parent(s): 440deef

Update app.py

Browse files

Added Reset functionality

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -193,7 +193,7 @@ with gr.Blocks() as demo:
193
  submit = gr.Button(value="Submit", variant="secondary", )
194
  grade = gr.Button(value="Grade", variant="secondary")
195
  download = gr.Button(value="Download", variant="secondary")
196
- reset = gr.Button(value="Reset", variant="secondary")
197
 
198
  chatbot = gr.Chatbot([], label="Chat with grading results", elem_id="chatbot", height=400)
199
 
@@ -228,8 +228,8 @@ with gr.Blocks() as demo:
228
  bot, chatbot, chatbot
229
  )
230
 
231
- reset.click(reset_data, inputs=[chatbot], outputs=[chatbot], postprocess=False, show_progress=True, ).success(
232
- bot, chatbot, chatbot)
233
 
234
  if __name__ == "__main__":
235
  demo.queue()
 
193
  submit = gr.Button(value="Submit", variant="secondary", )
194
  grade = gr.Button(value="Grade", variant="secondary")
195
  download = gr.Button(value="Download", variant="secondary")
196
+ reset = gr.ClearButton([url, canvas_api_key]) #gr.Button(value="Reset", variant="secondary")
197
 
198
  chatbot = gr.Chatbot([], label="Chat with grading results", elem_id="chatbot", height=400)
199
 
 
228
  bot, chatbot, chatbot
229
  )
230
 
231
+ #reset.click(reset_data, inputs=[chatbot], outputs=[chatbot], postprocess=False, show_progress=True, ).success(
232
+ #bot, chatbot, chatbot)
233
 
234
  if __name__ == "__main__":
235
  demo.queue()