Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,15 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|