Spaces:
Runtime error
Runtime error
vodkaslime
commited on
branding and renaming
Browse files
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:
|
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
|
|
|
|
|
|
|
|
|
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")
|