Omartificial-Intelligence-Space commited on
Commit
42390ad
1 Parent(s): f92af01

update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -155,6 +155,11 @@ with demo:
155
  value=None,
156
  interactive=True,
157
  )
 
 
 
 
 
158
 
159
  with gr.Column():
160
  precision = gr.Dropdown(
@@ -184,6 +189,7 @@ with demo:
184
  precision,
185
  weight_type,
186
  model_type,
 
187
  ],
188
  submission_result,
189
  )
@@ -201,4 +207,4 @@ with demo:
201
  scheduler = BackgroundScheduler()
202
  scheduler.add_job(restart_space, "interval", seconds=1800)
203
  scheduler.start()
204
- demo.queue(default_concurrency_limit=40).launch()
 
155
  value=None,
156
  interactive=True,
157
  )
158
+ num_examples_input = gr.Number(
159
+ label="Number of Examples per Subject (e.g., 10)",
160
+ value=10,
161
+ precision=0
162
+ )
163
 
164
  with gr.Column():
165
  precision = gr.Dropdown(
 
189
  precision,
190
  weight_type,
191
  model_type,
192
+ num_examples_input # Added this line
193
  ],
194
  submission_result,
195
  )
 
207
  scheduler = BackgroundScheduler()
208
  scheduler.add_job(restart_space, "interval", seconds=1800)
209
  scheduler.start()
210
+ demo.queue(default_concurrency_limit=40).launch()