jadechoghari commited on
Commit
9960cd7
1 Parent(s): b752cf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -26,11 +26,6 @@ model.setup()
26
  CACHE_DIR = "gradio_cached_examples"
27
 
28
 
29
- example_mapping = {
30
- 1: os.path.join(CACHE_DIR, "1"),
31
- 2: os.path.join(CACHE_DIR, "2"),
32
- 3: os.path.join(CACHE_DIR, "3")
33
- }
34
 
35
  #for local cache
36
  def load_cached_example_outputs(example_index: int) -> Tuple[str, str]:
@@ -123,9 +118,15 @@ with gr.Blocks(css=css) as demo:
123
 
124
  # Example inputs, the last two are videos
125
  example = [
126
- ["examples/1.png", 3, "A scenic mountain view", 500],
127
- ["examples/2.png", 2, "A forest with birds", 500],
128
- ["examples/3.png", 1, "A crowded city", 500]
 
 
 
 
 
 
129
  ]
130
 
131
  def update_examples(index):
 
26
  CACHE_DIR = "gradio_cached_examples"
27
 
28
 
 
 
 
 
 
29
 
30
  #for local cache
31
  def load_cached_example_outputs(example_index: int) -> Tuple[str, str]:
 
118
 
119
  # Example inputs, the last two are videos
120
  example = [
121
+ ["examples/1.png", "", 500],
122
+ ["examples/2.png", "", 500],
123
+ ["examples/3.png", "", 500],
124
+ ["examples/4.png", "", 500],
125
+ ["examples/5.png", "", 500],
126
+ ["examples/6.png", "", 500],
127
+ ["examples/7.png", "", 500],
128
+ ["examples/8.png", "", 500],
129
+ ["examples/9.png", "", 500]
130
  ]
131
 
132
  def update_examples(index):