vodkaslime commited on
Commit
ff68c49
·
unverified ·
1 Parent(s): e9c67a8

branding and renaming

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -14,7 +14,7 @@ BACKEND_SCRIPT = os.path.join(BACKEND_DIR, "main.py")
14
 
15
  MODEL_ROOT_DIR = os.path.join(HOME_DIR, "models")
16
 
17
- st.title(":wave: CTranslate2 Model Converter")
18
 
19
 
20
  @st.cache_resource
@@ -74,7 +74,11 @@ def convert_and_upload_model(
74
  with st.spinner("Converting model"):
75
  subprocess.check_call(command)
76
  except subprocess.CalledProcessError as e:
77
- st.error(f"Error converting model to ctranslate2 format: {e}")
 
 
 
 
78
  return
79
 
80
  st.success("Model successfully converted")
 
14
 
15
  MODEL_ROOT_DIR = os.path.join(HOME_DIR, "models")
16
 
17
+ st.title(":wave: Tabby Model Converter")
18
 
19
 
20
  @st.cache_resource
 
74
  with st.spinner("Converting model"):
75
  subprocess.check_call(command)
76
  except subprocess.CalledProcessError as e:
77
+ st.error(f"Error converting model to Tabby compatible format: {e}")
78
+ link = f"https://huggingface.co/{model}"
79
+ st.warning(
80
+ f"Note: do you have access to the model? If not, visit the model page at {link} and request for access"
81
+ )
82
  return
83
 
84
  st.success("Model successfully converted")