Spaces:
Runtime error
Runtime error
Thumbs up and thumbs down
Browse files
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()
|