echarlaix HF staff commited on
Commit
9881ed5
·
1 Parent(s): 9506213
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -40,7 +40,6 @@ def process_model(
40
  dtype: str,
41
  private_repo: bool,
42
  task: str,
43
- calibration_dataset: str,
44
  oauth_token: gr.OAuthToken,
45
  ):
46
  if oauth_token.token is None:
@@ -174,19 +173,16 @@ with gr.Blocks() as demo:
174
  label="Private Repo",
175
  info="Create a private repo under your username",
176
  )
177
- task = gr.File(
178
  value="auto",
179
  label="Task : can be left to auto, will be automatically inferred",
180
- max_lines=1,
181
  )
182
- calibration_dataset = gr.File(label="Calibration dataset", value="", visible=False)
183
  interface = gr.Interface(
184
  fn=process_model,
185
  inputs=[
186
  model_id,
187
  dtype,
188
  private_repo,
189
- calibration_dataset,
190
  task,
191
  ],
192
  outputs=[
 
40
  dtype: str,
41
  private_repo: bool,
42
  task: str,
 
43
  oauth_token: gr.OAuthToken,
44
  ):
45
  if oauth_token.token is None:
 
173
  label="Private Repo",
174
  info="Create a private repo under your username",
175
  )
176
+ task = gr.Textbox(
177
  value="auto",
178
  label="Task : can be left to auto, will be automatically inferred",
 
179
  )
 
180
  interface = gr.Interface(
181
  fn=process_model,
182
  inputs=[
183
  model_id,
184
  dtype,
185
  private_repo,
 
186
  task,
187
  ],
188
  outputs=[