chore: change LOCAL_DIR from absolute path to relative path
Browse filesUpdate the LOCAL_DIR variable to use a relative path ("./") instead of an absolute Windows path. This improves portability and simplifies setup for different environments. Also remove the UTF-8 BOM character from the import line.
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 5 |
from peft import PeftModel
|
| 6 |
|
| 7 |
-
LOCAL_DIR = "
|
| 8 |
BASE_ID = "unsloth/meta-llama-3.1-8b-bnb-4bit"
|
| 9 |
|
| 10 |
@st.cache_resource
|
|
|
|
| 1 |
+
import os
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 5 |
from peft import PeftModel
|
| 6 |
|
| 7 |
+
LOCAL_DIR = "./"
|
| 8 |
BASE_ID = "unsloth/meta-llama-3.1-8b-bnb-4bit"
|
| 9 |
|
| 10 |
@st.cache_resource
|