Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,9 +52,10 @@ def build_gradio_app(css=css):
|
|
52 |
image_input = gr.Image(type="pil", label="이미지 업로드")
|
53 |
submit_button = gr.Button("변환하기")
|
54 |
|
55 |
-
examples = gr.Examples(examples=[["ko.png"], ["en.png"], ["hand.jpg"]], inputs=image_input, fn=process_and_output, outputs=output_text)
|
56 |
|
57 |
output_text = gr.Textbox(label="결과")
|
|
|
|
|
58 |
latex_iframe = gr.HTML(value='<iframe src="https://www.mathjax.org/#demo" style="width: 100%; height: 700px; border: 2px solid #007bff; border-radius: 8px;"></iframe>', elem_id="latex_iframe")
|
59 |
|
60 |
def process_and_output(image):
|
|
|
52 |
image_input = gr.Image(type="pil", label="이미지 업로드")
|
53 |
submit_button = gr.Button("변환하기")
|
54 |
|
|
|
55 |
|
56 |
output_text = gr.Textbox(label="결과")
|
57 |
+
examples = gr.Examples(examples=[["ko.png"], ["en.png"], ["hand.jpg"]], inputs=image_input, fn=process_and_output, outputs=output_text)
|
58 |
+
|
59 |
latex_iframe = gr.HTML(value='<iframe src="https://www.mathjax.org/#demo" style="width: 100%; height: 700px; border: 2px solid #007bff; border-radius: 8px;"></iframe>', elem_id="latex_iframe")
|
60 |
|
61 |
def process_and_output(image):
|