Spaces:
Sleeping
Sleeping
with gr.Accordion(open=False, label="上傳的圖片"):
Browse files
app.py
CHANGED
|
@@ -625,15 +625,16 @@ with gr.Blocks() as demo:
|
|
| 625 |
with gr.Tab("計算紙分析"):
|
| 626 |
with gr.Row():
|
| 627 |
gr.Markdown("## 學生計算紙分析")
|
| 628 |
-
with gr.Accordion(open=False):
|
| 629 |
with gr.Row():
|
| 630 |
calculation_image_input = gr.Image(label="上傳計算紙截圖", type="filepath")
|
| 631 |
with gr.Row():
|
| 632 |
calculation_base64_input = gr.Textbox(label="或輸入 base64 圖片字串", lines=3, elem_id="calculation_base64_input")
|
| 633 |
with gr.Row():
|
| 634 |
calculation_submit_button = gr.Button("分析計算紙", elem_id="calculation_submit_button")
|
| 635 |
-
with gr.
|
| 636 |
-
|
|
|
|
| 637 |
with gr.Row():
|
| 638 |
calculation_result = gr.Markdown(label="分析結果", latex_delimiters=[{"left": "$", "right": "$", "display": False}])
|
| 639 |
|
|
|
|
| 625 |
with gr.Tab("計算紙分析"):
|
| 626 |
with gr.Row():
|
| 627 |
gr.Markdown("## 學生計算紙分析")
|
| 628 |
+
with gr.Accordion(open=False,label="上傳物件"):
|
| 629 |
with gr.Row():
|
| 630 |
calculation_image_input = gr.Image(label="上傳計算紙截圖", type="filepath")
|
| 631 |
with gr.Row():
|
| 632 |
calculation_base64_input = gr.Textbox(label="或輸入 base64 圖片字串", lines=3, elem_id="calculation_base64_input")
|
| 633 |
with gr.Row():
|
| 634 |
calculation_submit_button = gr.Button("分析計算紙", elem_id="calculation_submit_button")
|
| 635 |
+
with gr.Accordion(open=False, label="上傳的圖片"):
|
| 636 |
+
with gr.Row():
|
| 637 |
+
calculation_image_display = gr.Image(label="上傳的圖片")
|
| 638 |
with gr.Row():
|
| 639 |
calculation_result = gr.Markdown(label="分析結果", latex_delimiters=[{"left": "$", "right": "$", "display": False}])
|
| 640 |
|