bryanzhou008 commited on
Commit
167bc20
1 Parent(s): 0313ee9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from src.v2_for_hf import generate_images
4
  from src.v2_for_hf import NUM_GEN
5
 
6
 
7
- def dynamic_label(api_key, input_image, mistaken_class, ground_truth_class):
8
  return [gr.Image(label=f"Generated Image of {ground_truth_class}") for _ in range(NUM_GEN)]
9
 
10
 
@@ -16,7 +16,7 @@ iface = gr.Interface(
16
  gr.Textbox(label="Mistaken Class"),
17
  gr.Textbox(label="Ground Truth Class")
18
  ],
19
- outputs=dynamic_label,
20
  title="visual-data-aug",
21
  live=True,
22
  )
 
4
  from src.v2_for_hf import NUM_GEN
5
 
6
 
7
+ def dynamic_label(ground_truth_class):
8
  return [gr.Image(label=f"Generated Image of {ground_truth_class}") for _ in range(NUM_GEN)]
9
 
10
 
 
16
  gr.Textbox(label="Mistaken Class"),
17
  gr.Textbox(label="Ground Truth Class")
18
  ],
19
+ outputs=dynamic_label(inputs[3]),
20
  title="visual-data-aug",
21
  live=True,
22
  )