smyu commited on
Commit
2ec36b4
·
1 Parent(s): 18a1402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -35,11 +35,23 @@ examples =[
35
 
36
  #css = """.output_image, .input_image {height: 600px !important}"""
37
 
 
 
 
 
 
 
 
 
 
38
  iface = gr.Interface(
39
  fn=process_image,
40
  inputs=gr.inputs.Image(type="pil"),
41
  outputs=gr.outputs.Textbox(),
42
  title=title,
 
 
 
43
  live=True
44
  # examples=examples
45
  )
 
35
 
36
  #css = """.output_image, .input_image {height: 600px !important}"""
37
 
38
+ examples = [
39
+ [os.path.join(os.path.abspath(''), './examples/sample_1.png')],
40
+ [os.path.join(os.path.abspath(''), './examples/sample_2.png')],
41
+ [os.path.join(os.path.abspath(''), './examples/sample_3.jpg')]
42
+ ]
43
+ description = """
44
+ Try the examples at bottom to get started.
45
+ """
46
+
47
  iface = gr.Interface(
48
  fn=process_image,
49
  inputs=gr.inputs.Image(type="pil"),
50
  outputs=gr.outputs.Textbox(),
51
  title=title,
52
+ examples=examples,
53
+ description=description,
54
+ cache_examples=True,
55
  live=True
56
  # examples=examples
57
  )