Update app.py
Browse files
app.py
CHANGED
@@ -289,10 +289,9 @@ with gr.Blocks(css=css) as demo:
|
|
289 |
downvote_button = gr.Button("π", elem_classes="downvote-button")
|
290 |
vote_markdown = gr.Markdown(label="Output")
|
291 |
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
feedback_btn = gr.Button(value="Submit")
|
296 |
# O14813 train index 127, 266, 738, 1060 test index 4
|
297 |
gr.Examples(
|
298 |
examples=[
|
@@ -314,6 +313,7 @@ with gr.Blocks(css=css) as demo:
|
|
314 |
downvote_button.click(downvote, vote_id, vote_markdown)
|
315 |
feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
|
316 |
|
|
|
317 |
demo.launch(debug=True)
|
318 |
|
319 |
|
|
|
289 |
downvote_button = gr.Button("π", elem_classes="downvote-button")
|
290 |
vote_markdown = gr.Markdown(label="Output")
|
291 |
|
292 |
+
inputs = gr.Textbox(type="text", label="Your feedback")
|
293 |
+
feedback_markdown = gr.Markdown(label="Output")
|
294 |
+
feedback_btn = gr.Button(value="Submit")
|
|
|
295 |
# O14813 train index 127, 266, 738, 1060 test index 4
|
296 |
gr.Examples(
|
297 |
examples=[
|
|
|
313 |
downvote_button.click(downvote, vote_id, vote_markdown)
|
314 |
feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
|
315 |
|
316 |
+
|
317 |
demo.launch(debug=True)
|
318 |
|
319 |
|