Spaces:
Sleeping
Sleeping
finetuning again
Browse files
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 |
-
#
|
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:
|