Spaces:
Runtime error
Runtime error
Update feedback
Browse files
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
|
| 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()
|