jmbt22 commited on
Commit
819941d
1 Parent(s): 90fa701

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -1,3 +1,15 @@
1
  import gradio as gr
 
2
 
3
- gr.Interface.load("models/microsoft/trocr-small-handwritten").launch()
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
+ import os
3
 
4
+ title = "Handwriting Detector"
5
+
6
+ tts_examples = [
7
+ os.path.join(os.path.dirname(__file__), "data/test.jpg")
8
+ ]
9
+
10
+ gr.Interface.load(
11
+ "models/microsoft/trocr-small-handwritten",
12
+ title=title,
13
+ examples=tts_examples,
14
+ description="Give me something to detect!"
15
+ ).launch()