xu3kev commited on
Commit
8d5c1ce
1 Parent(s): 5c9cd9f
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -13,12 +13,11 @@ HUGGINGFACE=True
13
  MOCK = False
14
  TEST_FOLDER = "c4f5"
15
 
16
- if HUGGINGFACE:
17
- MODEL_NAME="xu3kev/deepseekcoder-7b-logo-pbe"
18
- import torch
19
- from transformers import AutoModelForCausalLM, AutoTokenizer
20
- hug_model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, torch_dtype=torch.float16,).to('cuda')
21
- hug_tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
22
 
23
  INPUT_STRUCTION_TEMPLATE = """Here is a gray scale images representing with integer values 0-9.
24
  {image_str}
 
13
  MOCK = False
14
  TEST_FOLDER = "c4f5"
15
 
16
+ MODEL_NAME="xu3kev/deepseekcoder-7b-logo-pbe"
17
+ import torch
18
+ from transformers import AutoModelForCausalLM, AutoTokenizer
19
+ hug_model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, torch_dtype=torch.float16,).to('cuda')
20
+ hug_tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
 
21
 
22
  INPUT_STRUCTION_TEMPLATE = """Here is a gray scale images representing with integer values 0-9.
23
  {image_str}