jcai0o0 commited on
Commit
2b0e580
·
verified ·
1 Parent(s): 7da0921

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ """
4
+ Create user interface for OCR demo
5
+ """
6
+
7
+ # image = gr.Image(shape=(300, 300))
8
+ image = gr.Sketchpad()
9
+ output = gr.Textbox(label="Output")
10
+
11
+ demo = gr.Interface(
12
+ [image],
13
+ output,
14
+ title="test test test",
15
+ css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}",
16
+ article = """<p style='text-align: center;'>
17
+ """
18
+
19
+
20
+ )
21
+ # demo.launch(enable_queue = False)
22
+ demo.launch()