osbm commited on
Commit
bf8a05b
·
1 Parent(s): 6e28a65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -107,7 +107,9 @@ with st.sidebar:
107
  st.title("text")
108
 
109
  if submitted:
110
- trainer = Trainer(model_configs[model_name])
111
- trainer.inference()
 
 
112
  st.success(f"Success with the inference of {model_name}")
113
 
 
107
  st.title("text")
108
 
109
  if submitted:
110
+ with st.spinner('Creating the trainer class instance...'):
111
+ trainer = Trainer(model_configs[model_name])
112
+ with st.spinner('Running inference function...')
113
+ trainer.inference()
114
  st.success(f"Success with the inference of {model_name}")
115