JustKiddo commited on
Commit
6f76811
·
verified ·
1 Parent(s): 5d9a422

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -4,8 +4,6 @@ from huggingface_hub import InferenceClient
4
 
5
  client = InferenceClient("models/microsoft/trocr-base-handwritten")
6
 
7
- sepia_img
8
-
9
  def sepia(input_img):
10
  sepia_filter = np.array([
11
  [0.393, 0.769, 0.189],
@@ -34,12 +32,13 @@ with gr.Blocks() as generated_output:
34
  with gr.Row():
35
  gr.Textbox(sepia_img, label="Sepia values")
36
 
 
37
  #with gr.Blocks() as generated_output:
38
  # inp = gr.Interface(sepia, gr.Image(), "image")
39
  # out = gr.Textbox()
40
 
41
 
42
- demoApp = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
43
 
44
  if __name__ == "__main__":
45
- demoApp.launch()
 
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],
 
32
  with gr.Row():
33
  gr.Textbox(sepia_img, label="Sepia values")
34
 
35
+
36
  #with gr.Blocks() as generated_output:
37
  # inp = gr.Interface(sepia, gr.Image(), "image")
38
  # out = gr.Textbox()
39
 
40
 
41
+ demo = gr.TabbedInterface([sepia_interface, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
42
 
43
  if __name__ == "__main__":
44
+ demo.launch()