File size: 312 Bytes
30be98c
819941d
30be98c
819941d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
import os

title = "Handwriting Detector"

tts_examples = [
    os.path.join(os.path.dirname(__file__), "data/test.jpg")
]

gr.Interface.load(
    "models/microsoft/trocr-small-handwritten",
    title=title,
    examples=tts_examples,
    description="Give me something to detect!"
).launch()