test-ocr-api / app.py
jcai0o0's picture
Create app.py
2b0e580 verified
raw
history blame contribute delete
476 Bytes
import gradio as gr
"""
Create user interface for OCR demo
"""
# image = gr.Image(shape=(300, 300))
image = gr.Sketchpad()
output = gr.Textbox(label="Output")
demo = gr.Interface(
[image],
output,
title="test test test",
css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}",
article = """<p style='text-align: center;'>
"""
)
# demo.launch(enable_queue = False)
demo.launch()