Spaces:
Runtime error
Runtime error
Download app.py from jcai0o0/test-ocr-api: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/jcai0o0/test-ocr-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/jcai0o0/test-ocr-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/jcai0o0/test-ocr-api/resolve/main/app.py
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() |