Skip to content

Commit 30a9c60

Browse files
authored
Update internstudio_web_demo.py
1 parent 84555e1 commit 30a9c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/internstudio_web_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def on_btn_click():
168168

169169

170170
@st.cache_resource
171-
def load_model():
171+
def load_model(arg1):
172172
# model = AutoModelForCausalLM.from_pretrained(args.m).cuda()
173173
# tokenizer = AutoTokenizer.from_pretrained(args.m, trust_remote_code=True)
174174
model = AutoModelForCausalLM.from_pretrained(arg1, torch_dtype=torch.float16).cuda()

0 commit comments

Comments
 (0)