limitedonly41 commited on
Commit
080569b
·
verified ·
1 Parent(s): a7a99b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -37,17 +37,17 @@ def classify_website(site_text):
37
 
38
  prompt = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
39
 
40
- ### Instruction:
41
- Categorize the website into one of the 3 categories:
42
-
43
- 1) OTHER
44
- 2) NEWS/BLOG
45
- 3) E-commerce
46
-
47
- ### Input:
48
- {site_text}
49
-
50
- ### Response:"""
51
 
52
  inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
53
  outputs = model.generate(**inputs, max_new_tokens=64, use_cache=True)
 
37
 
38
  prompt = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
39
 
40
+ ### Instruction:
41
+ Categorize the website into one of the 3 categories:
42
+
43
+ 1) OTHER
44
+ 2) NEWS/BLOG
45
+ 3) E-commerce
46
+
47
+ ### Input:
48
+ {site_text}
49
+
50
+ ### Response:"""
51
 
52
  inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
53
  outputs = model.generate(**inputs, max_new_tokens=64, use_cache=True)