JPBianchi commited on
Commit
660dcf1
1 Parent(s): ef5768a

finetuning again

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -307,15 +307,10 @@ def main():
307
  with st.spinner(''):
308
  model_path = finetune(model_name_or_path, savemodel=True, outpath='models')
309
  with c1:
310
- # st.write(f"model_path returned = {model_path}")
311
  if model_path is not None:
312
  if model_name_or_path.split('/')[-1] not in model_path:
313
  st.sidebar.write(model_path) # a warning from finetuning in this case
314
- # elif model_path not in available_models:
315
- # finetuning generated a model, let's add it
316
- # no because it's not in Weaviate, so we can't use it
317
- # available_models.append(model_path)
318
- # st.write(f"{model_path.split('/')[-1]} added to list!")
319
  except Exception:
320
  st.write("Model not found on HF or error")
321
  else:
 
307
  with st.spinner(''):
308
  model_path = finetune(model_name_or_path, savemodel=True, outpath='models')
309
  with c1:
 
310
  if model_path is not None:
311
  if model_name_or_path.split('/')[-1] not in model_path:
312
  st.sidebar.write(model_path) # a warning from finetuning in this case
313
+ # TODO: add model to Weaviate and to model list
 
 
 
 
314
  except Exception:
315
  st.write("Model not found on HF or error")
316
  else: