sasha HF Staff commited on
Commit
7725f99
·
verified ·
1 Parent(s): b7eaecc

Update app.py

Browse files

Changing default model name (sorry Leandro!)

Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -114,17 +114,6 @@ def add_new_eval(
114
 
115
  model_size = get_model_size(model_info=model_info, precision=precision)
116
 
117
- # Were the model card and license filled?
118
- #try:
119
- # license = model_info.cardData["license"]
120
- #except Exception:
121
- # return styled_error("Please select a license for your model")
122
-
123
- #modelcard_OK, error_msg = check_model_card(model)
124
- #if not modelcard_OK:
125
- # return styled_error(error_msg)
126
-
127
- # Seems good, creating the eval
128
  print("Adding request")
129
 
130
  request_dict = {
@@ -181,7 +170,7 @@ with gr.Blocks() as demo:
181
  interactive=True,
182
  )
183
  with gr.Column():
184
- model_name_textbox = gr.Textbox(label="Model name", value="lvwerra/distilbert-imdb")
185
  precision = gr.Dropdown(
186
  choices=[i.value.name for i in Precision if i != Precision.Unknown],
187
  label="Precision",
 
114
 
115
  model_size = get_model_size(model_info=model_info, precision=precision)
116
 
 
 
 
 
 
 
 
 
 
 
 
117
  print("Adding request")
118
 
119
  request_dict = {
 
170
  interactive=True,
171
  )
172
  with gr.Column():
173
+ model_name_textbox = gr.Textbox(label="Model name", value="Model name")
174
  precision = gr.Dropdown(
175
  choices=[i.value.name for i in Precision if i != Precision.Unknown],
176
  label="Precision",