fffiloni commited on
Commit
6fcf1e7
·
1 Parent(s): 9f3df14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -63,9 +63,9 @@ def custom_model_changed(custom_model, previous_model):
63
  if custom_model == "" and previous_model == "" :
64
  status_message = ""
65
  elif custom_model != previous_model:
66
- status_message = "Model may changed, please reload before any new run"
67
  else:
68
- status_message = "Model ready"
69
  return status_message
70
 
71
  @spaces.GPU
@@ -144,6 +144,9 @@ div#warning-duplicate .actions a {
144
  button#load_model_btn{
145
  height: 46px;
146
  }
 
 
 
147
  """
148
 
149
  with gr.Blocks(css=css) as demo:
@@ -201,11 +204,12 @@ with gr.Blocks(css=css) as demo:
201
  with gr.Group():
202
  load_model_btn = gr.Button("Load my model", elem_id="load_model_btn")
203
  previous_model = gr.Textbox(
204
- visible=False
205
  )
206
  model_status = gr.Textbox(
207
  label = "model status",
208
- show_label = False
 
209
  )
210
  trigger_word = gr.Textbox(label="Trigger word", interactive=False, visible=False)
211
 
 
63
  if custom_model == "" and previous_model == "" :
64
  status_message = ""
65
  elif custom_model != previous_model:
66
+ status_message = "model changed, please reload before any new run"
67
  else:
68
+ status_message = "model ready"
69
  return status_message
70
 
71
  @spaces.GPU
 
144
  button#load_model_btn{
145
  height: 46px;
146
  }
147
+ #status_info{
148
+ font-size: 0.9em;
149
+ }
150
  """
151
 
152
  with gr.Blocks(css=css) as demo:
 
204
  with gr.Group():
205
  load_model_btn = gr.Button("Load my model", elem_id="load_model_btn")
206
  previous_model = gr.Textbox(
207
+ visible = False
208
  )
209
  model_status = gr.Textbox(
210
  label = "model status",
211
+ show_label = False,
212
+ elem_id = "status_info"
213
  )
214
  trigger_word = gr.Textbox(label="Trigger word", interactive=False, visible=False)
215