JustKiddo commited on
Commit
ff3f385
·
verified ·
1 Parent(s): 283fe0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -4,9 +4,6 @@ from huggingface_hub import InferenceClient
4
 
5
  client = InferenceClient("models/microsoft/trocr-base-handwritten")
6
 
7
- def welcome(name):
8
- return f"Welcome to Gradio, {name}!"
9
-
10
  def sepia(input_img):
11
  sepia_filter = np.array([
12
  [0.393, 0.769, 0.189],
@@ -19,15 +16,10 @@ def sepia(input_img):
19
 
20
  sepia_interface = gr.Interface(sepia, gr.Image(), "image")
21
 
 
22
  with gr.Blocks() as generated_output:
23
- gr.Markdown(
24
- """
25
- # Hello World!
26
- Start typing below to see the output.
27
- """)
28
  inp = sepia_interface
29
  out = gr.Textbox()
30
- inp.change(welcome, inp, out)
31
 
32
 
33
  demoApp = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
 
4
 
5
  client = InferenceClient("models/microsoft/trocr-base-handwritten")
6
 
 
 
 
7
  def sepia(input_img):
8
  sepia_filter = np.array([
9
  [0.393, 0.769, 0.189],
 
16
 
17
  sepia_interface = gr.Interface(sepia, gr.Image(), "image")
18
 
19
+ ## https://www.gradio.app/docs/gradio/blocks
20
  with gr.Blocks() as generated_output:
 
 
 
 
 
21
  inp = sepia_interface
22
  out = gr.Textbox()
 
23
 
24
 
25
  demoApp = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])