Spaces:
Runtime error
Runtime error
Update app.py
Browse filesAdded Reset functionality
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()
|