nanom commited on
Commit
84c1f02
·
1 Parent(s): 9d9dd22

Fix Interface

Browse files
Files changed (2) hide show
  1. __pycache__/utils.cpython-39.pyc +0 -0
  2. app.py +10 -31
__pycache__/utils.cpython-39.pyc ADDED
Binary file (4.95 kB). View file
 
app.py CHANGED
@@ -15,45 +15,24 @@ with demo:
15
  with gr.Row():
16
  with gr.Column():
17
  with gr.Row():
18
- with gr.Column():
19
- with gr.Row():category = gr.Dropdown(
20
- label="Category",
21
- value="relational",
22
- choices=["intrinsic","spatial","ordinal","relational","plural"])
23
- with gr.Column():
24
- with gr.Row():predictions = gr.Dropdown(
25
- label='Predictions',
26
- value='fail',
27
- choices=["fail", "correct"])
28
  with gr.Row():
29
- with gr.Column():
30
- with gr.Row():model = gr.Dropdown(
31
- label='Model',
32
- value='baseline',
33
- choices=["baseline", "extended"])
34
- with gr.Column():
35
- with gr.Row():split = gr.Dropdown(
36
- label='Split',
37
- value='val',
38
- choices=["test","val"])
39
  with gr.Row():
40
- with gr.Column():
41
- with gr.Row():username = gr.Dropdown(
42
- label="UserName",
43
- value="luciana",
44
- choices=["luciana",'mauri','jorge','nano'])
45
- with gr.Column():
46
- with gr.Row():next_idx_sample = gr.Number(
47
- label='Next Idx Sample',
48
- value=0)
49
  with gr.Row():
50
  progress = gr.Label(label='Progress',num_top_classes=10)
51
  with gr.Row():
52
  btn_next = gr.Button("Get Next Sample")
53
 
54
  with gr.Column():
55
- with gr.Row(): info = gr.Text(label="Sample Info")
56
- with gr.Row(): img = gr.Image(label="Sample", type="numpy")
 
 
57
 
58
  btn_next.click(
59
  fn=sample.explorateSamples,
 
15
  with gr.Row():
16
  with gr.Column():
17
  with gr.Row():
18
+ category = gr.Dropdown(label="Category",value="relational",choices=["intrinsic","spatial","ordinal","relational","plural"])
19
+ predictions = gr.Dropdown(label='Predictions', value='fail',choices=["fail", "correct"])
 
 
 
 
 
 
 
 
20
  with gr.Row():
21
+ model = gr.Dropdown(label='Model', value='baseline', choices=["baseline", "extended"])
22
+ split = gr.Dropdown(label='Split',value='val',choices=["test","val"])
 
 
 
 
 
 
 
 
23
  with gr.Row():
24
+ username = gr.Dropdown(label="UserName",value="luciana",choices=["luciana",'mauri','jorge','nano'])
25
+ next_idx_sample = gr.Number(label='Next Idx Sample', value=0)
 
 
 
 
 
 
 
26
  with gr.Row():
27
  progress = gr.Label(label='Progress',num_top_classes=10)
28
  with gr.Row():
29
  btn_next = gr.Button("Get Next Sample")
30
 
31
  with gr.Column():
32
+ with gr.Row():
33
+ info = gr.Text(label="Sample Info")
34
+ with gr.Row():
35
+ img = gr.Image(label="Sample", type="numpy")
36
 
37
  btn_next.click(
38
  fn=sample.explorateSamples,