Update app.py
Browse files
app.py
CHANGED
@@ -251,14 +251,10 @@ with gr.Blocks(css=css) as demo:
|
|
251 |
with gr.Column():
|
252 |
# output_text = gr.Textbox(label="Output Text")
|
253 |
with gr.Accordion('Prediction:', open=True):
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
# with gr.Row(label="Your feedback"):
|
259 |
-
# chatbot = gr.Chatbot(placeholder="<strong>Is this prediction helpful?</strong><br>")
|
260 |
-
# chatbot.like(vote, None, None)
|
261 |
-
# gr.ChatInterface(fn=yes, type="messages", chatbot=chatbot)
|
262 |
# with gr.Row(label="Your feedback"):
|
263 |
# with gr.Column():
|
264 |
# inputs = gr.Textbox(type="text")
|
@@ -283,6 +279,5 @@ with gr.Blocks(css=css) as demo:
|
|
283 |
submit_btn.click(generate_caption, [input_protein, prompt], [output_markdown])
|
284 |
# feedback_btn.click(save_feedback, [inputs], [output_markdown])
|
285 |
|
286 |
-
|
287 |
demo.launch(debug=True)
|
288 |
|
|
|
251 |
with gr.Column():
|
252 |
# output_text = gr.Textbox(label="Output Text")
|
253 |
with gr.Accordion('Prediction:', open=True):
|
254 |
+
output_markdown = gr.Markdown(label="Output")
|
255 |
+
with gr.Row(label="Your feedback"):
|
256 |
+
chatbot = gr.Chatbot(placeholder="<strong>Is this prediction helpful?</strong><br>")
|
257 |
+
chatbot.like(vote, None, None)
|
|
|
|
|
|
|
|
|
258 |
# with gr.Row(label="Your feedback"):
|
259 |
# with gr.Column():
|
260 |
# inputs = gr.Textbox(type="text")
|
|
|
279 |
submit_btn.click(generate_caption, [input_protein, prompt], [output_markdown])
|
280 |
# feedback_btn.click(save_feedback, [inputs], [output_markdown])
|
281 |
|
|
|
282 |
demo.launch(debug=True)
|
283 |
|