Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,10 +30,11 @@ def build_gradio_app():
|
|
30 |
with gr.Row():
|
31 |
image_input = gr.Image(type="filepath", label="이미지 업로드") # 'file' 타입을 'filepath'로 변경
|
32 |
submit_button = gr.Button("변환하기")
|
33 |
-
outputs =
|
34 |
-
|
35 |
submit_button.click(fn=get_latex_from_image_all_formats, inputs=[image_input], outputs=outputs)
|
36 |
|
|
|
|
|
37 |
return app
|
38 |
|
39 |
if __name__ == "__main__":
|
|
|
30 |
with gr.Row():
|
31 |
image_input = gr.Image(type="filepath", label="이미지 업로드") # 'file' 타입을 'filepath'로 변경
|
32 |
submit_button = gr.Button("변환하기")
|
33 |
+
outputs = [gr.Textbox(label=f"{f} 결과") for f in ["text", "latex_styled", "latex_normal", "latex_list", "latex_simplified", "asciimath", "mathml"]]
|
|
|
34 |
submit_button.click(fn=get_latex_from_image_all_formats, inputs=[image_input], outputs=outputs)
|
35 |
|
36 |
+
|
37 |
+
|
38 |
return app
|
39 |
|
40 |
if __name__ == "__main__":
|