Update app.py
Browse files
app.py
CHANGED
|
@@ -55,10 +55,10 @@ with gr.Blocks() as demo:
|
|
| 55 |
with gr.Row():
|
| 56 |
check_button = gr.Button("Tra cứu!", variant="primary")
|
| 57 |
|
| 58 |
-
|
| 59 |
out = gr.Textbox(label="Xếp hạng", placeholder="", lines=2)
|
| 60 |
|
| 61 |
-
check_button.click(fn=respond, inputs=[id,comb], outputs=[out,
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
| 64 |
demo.launch()
|
|
|
|
| 55 |
with gr.Row():
|
| 56 |
check_button = gr.Button("Tra cứu!", variant="primary")
|
| 57 |
|
| 58 |
+
dfShow = gr.DataFrame(label="Điểm thi", col_count=(9, "fixed"))
|
| 59 |
out = gr.Textbox(label="Xếp hạng", placeholder="", lines=2)
|
| 60 |
|
| 61 |
+
check_button.click(fn=respond, inputs=[id,comb], outputs=[out,dfShow])
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
| 64 |
demo.launch()
|