hallisky commited on
Commit
8d81e67
Β·
1 Parent(s): eb8dc75

Update feedback

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -104,15 +104,19 @@ with demo:
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()
 
104
 
105
 
106
  with gr.Column(variant="panel"):
107
+ gr.Markdown("# 3) Obfuscated Output")
108
+
109
  output = gr.Textbox(label="Output", lines=3)
110
  obfuscate_button.click(fn=greet, inputs=[input_text] + sliders, outputs=output)
111
 
112
+ gr.Markdown("## Feedback [Optional]")
113
+
114
  # Add thumbs up / thumbs down
115
  gr.Markdown("### Is the response good or bad?")
116
+ feedback_rating = gr.Radio(choices=["No Feedback Selected", "Good πŸ‘", "Bad πŸ‘Ž"], value="None", interactive=True, label="Rate the Response")
117
 
118
  # Add feedback box
119
+ gr.Markdown("### Provide any feedback on the obfuscation")
120
  feedback_text = gr.Textbox(label="Feedback", lines=3)
121
 
122
  demo.launch()