Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
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)
|