magellol commited on
Commit
45c0971
1 Parent(s): 20044f7

Provide examples

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -12,6 +12,11 @@ def predict(img):
12
 
13
  with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
14
  img = gr.Image()
 
 
 
 
 
15
  with gr.Row():
16
  clear_btn = gr.ClearButton(value="Clear")
17
  submit_btn = gr.Button("Predict")
 
12
 
13
  with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
14
  img = gr.Image()
15
+ examples = gr.Examples([
16
+ ["./imgs/dali2.jpeg"],
17
+ ["./imgs/dali3.jpeg"],
18
+ ["./imgs/dali4.jpeg"],
19
+ ], inputs=img)
20
  with gr.Row():
21
  clear_btn = gr.ClearButton(value="Clear")
22
  submit_btn = gr.Button("Predict")