Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,15 +17,18 @@ subprocess.run(
|
|
17 |
shell=True,
|
18 |
)
|
19 |
|
20 |
-
token = os.environ["HF_TOKEN"]
|
21 |
|
22 |
|
23 |
model = AutoModelForCausalLM.from_pretrained(
|
24 |
"microsoft/Phi-3-mini-128k-instruct",
|
25 |
-
token=token,
|
26 |
trust_remote_code=True,
|
27 |
)
|
28 |
-
tok = AutoTokenizer.from_pretrained(
|
|
|
|
|
|
|
29 |
terminators = [
|
30 |
tok.eos_token_id,
|
31 |
]
|
|
|
17 |
shell=True,
|
18 |
)
|
19 |
|
20 |
+
# token = os.environ["HF_TOKEN"]
|
21 |
|
22 |
|
23 |
model = AutoModelForCausalLM.from_pretrained(
|
24 |
"microsoft/Phi-3-mini-128k-instruct",
|
25 |
+
# token=token,
|
26 |
trust_remote_code=True,
|
27 |
)
|
28 |
+
tok = AutoTokenizer.from_pretrained(
|
29 |
+
"microsoft/Phi-3-mini-128k-instruct",
|
30 |
+
# token=token
|
31 |
+
)
|
32 |
terminators = [
|
33 |
tok.eos_token_id,
|
34 |
]
|