Muiru commited on
Commit
4f8e403
·
1 Parent(s): 08a0f53

chore: change LOCAL_DIR from absolute path to relative path

Browse files

Update 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.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
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 = "c:/Users/Public/Cogni-OpenModel"
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