hallisky commited on
Commit
eb8dc75
Β·
1 Parent(s): 3724f29

Thumbs up and thumbs down

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -104,7 +104,15 @@ with demo:
104
 
105
 
106
  with gr.Column(variant="panel"):
107
- output = gr.Textbox(label="Output")
108
  obfuscate_button.click(fn=greet, inputs=[input_text] + sliders, outputs=output)
 
 
 
 
 
 
 
 
109
 
110
  demo.launch()
 
104
 
105
 
106
  with gr.Column(variant="panel"):
107
+ output = gr.Textbox(label="Output", lines=3)
108
  obfuscate_button.click(fn=greet, inputs=[input_text] + sliders, outputs=output)
109
+
110
+ # Add thumbs up / thumbs down
111
+ gr.Markdown("### Is the response good or bad?")
112
+ feedback_rating = gr.Radio(choices=["πŸ‘", "πŸ‘Ž"], label="Rate the Response")
113
+
114
+ # Add feedback box
115
+ gr.Markdown("### Provide your feedback")
116
+ feedback_text = gr.Textbox(label="Feedback", lines=3)
117
 
118
  demo.launch()