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()