Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import os
|
|
7 |
from threading import Thread
|
8 |
|
9 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
10 |
-
MODEL_ID = "
|
11 |
|
12 |
TITLE = f'<br><center>π Coin Generative Recognition</a></center>'
|
13 |
|
@@ -48,11 +48,8 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
48 |
low_cpu_mem_usage=True,
|
49 |
trust_remote_code=True
|
50 |
).to(0)
|
51 |
-
HF_TOKEN = os.environ.get("HF_API", None)
|
52 |
-
model.push_to_hub("Nechba/Coin-Generative-Recognition", use_auth_token=HF_TOKEN)
|
53 |
|
54 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
|
55 |
-
tokenizer.push_to_hub("Nechba/Coin-Generative-Recognition",use_auth_token=HF_TOKEN)
|
56 |
model.eval()
|
57 |
|
58 |
|
|
|
7 |
from threading import Thread
|
8 |
|
9 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
10 |
+
MODEL_ID = "Nechba/Coin-Generative-Recognition"
|
11 |
|
12 |
TITLE = f'<br><center>π Coin Generative Recognition</a></center>'
|
13 |
|
|
|
48 |
low_cpu_mem_usage=True,
|
49 |
trust_remote_code=True
|
50 |
).to(0)
|
|
|
|
|
51 |
|
52 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
|
|
|
53 |
model.eval()
|
54 |
|
55 |
|