Spaces:
Running
Running
Divyansh12
commited on
Commit
•
9518de8
1
Parent(s):
9446222
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ st.title("GGUF Model Streamlit App")
|
|
7 |
|
8 |
st.write("Downloading the model...")
|
9 |
repo_id = "Divyansh12/check"
|
10 |
-
model_dir = "model
|
11 |
|
12 |
# Download the model
|
13 |
if not os.path.exists(model_dir):
|
@@ -15,10 +15,11 @@ if not os.path.exists(model_dir):
|
|
15 |
st.write("Model downloaded successfully!")
|
16 |
|
17 |
# List downloaded files for debugging
|
18 |
-
|
19 |
-
st.write("
|
20 |
|
21 |
-
|
|
|
22 |
if not os.path.exists(model_path):
|
23 |
st.error(f"Model file not found at {model_path}")
|
24 |
else:
|
@@ -34,3 +35,4 @@ else:
|
|
34 |
)
|
35 |
st.write("Response:", response)
|
36 |
|
|
|
|
7 |
|
8 |
st.write("Downloading the model...")
|
9 |
repo_id = "Divyansh12/check"
|
10 |
+
model_dir = "model"
|
11 |
|
12 |
# Download the model
|
13 |
if not os.path.exists(model_dir):
|
|
|
15 |
st.write("Model downloaded successfully!")
|
16 |
|
17 |
# List downloaded files for debugging
|
18 |
+
for root, dirs, files in os.walk(model_dir):
|
19 |
+
st.write(f"Files in {root}: {files}")
|
20 |
|
21 |
+
# Update this path based on the actual file structure found
|
22 |
+
model_path = "model/models--Divyansh12--check/unsloth.F16.gguf"
|
23 |
if not os.path.exists(model_path):
|
24 |
st.error(f"Model file not found at {model_path}")
|
25 |
else:
|
|
|
35 |
)
|
36 |
st.write("Response:", response)
|
37 |
|
38 |
+
|