Huanzhi Mao commited on
Commit
b9ab8a4
1 Parent(s): 6767c79

add alert for feedback

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1266,12 +1266,14 @@ with gr.Blocks() as demo:
1266
  fn=send_feedback_positive,
1267
  inputs=[prompt, funcDescription, model, temperature, codeOutput, jsonOutput],
1268
  outputs=[],
 
1269
  )
1270
 
1271
  thumbs_down.click(
1272
  fn=send_feedback_negative,
1273
  inputs=[prompt, funcDescription, model, temperature, codeOutput, jsonOutput],
1274
  outputs=[],
 
1275
  )
1276
 
1277
  demo.launch()
 
1266
  fn=send_feedback_positive,
1267
  inputs=[prompt, funcDescription, model, temperature, codeOutput, jsonOutput],
1268
  outputs=[],
1269
+ js='() => { alert("Thanks for the feedback!"); }'
1270
  )
1271
 
1272
  thumbs_down.click(
1273
  fn=send_feedback_negative,
1274
  inputs=[prompt, funcDescription, model, temperature, codeOutput, jsonOutput],
1275
  outputs=[],
1276
+ js='() => { alert("Thanks for the feedback!"); }'
1277
  )
1278
 
1279
  demo.launch()