Update README.md
Browse files
README.md
CHANGED
|
@@ -78,8 +78,24 @@ model = AutoModelForCausalLM.from_pretrained("mudasir13cs/Field-adaptive-descrip
|
|
| 78 |
tokenizer = AutoTokenizer.from_pretrained("mudasir13cs/Field-adaptive-description-generator")
|
| 79 |
|
| 80 |
# Generate content
|
| 81 |
-
input_text = "
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
inputs = tokenizer(input_text, return_tensors="pt")
|
| 84 |
outputs = model.generate(**inputs, max_length=512, temperature=0.7, do_sample=True)
|
| 85 |
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
|
|
| 78 |
tokenizer = AutoTokenizer.from_pretrained("mudasir13cs/Field-adaptive-description-generator")
|
| 79 |
|
| 80 |
# Generate content
|
| 81 |
+
input_text = """<start_of_turn>user
|
| 82 |
+
Generate a 50-80 word SEO-friendly description for this presentation template:
|
| 83 |
+
Title: Modern Business Presentation
|
| 84 |
+
Visual Elements: minimalist design, blue gradient background, geometric shapes
|
| 85 |
+
Industries: Business, Marketing
|
| 86 |
+
Categories: Corporate, Professional
|
| 87 |
+
Tags: Modern, Clean, Professional
|
| 88 |
+
|
| 89 |
+
Requirements:
|
| 90 |
+
- Describe visual style naturally
|
| 91 |
+
- Mention 2-3 specific use cases
|
| 92 |
+
- Integrate keywords organically (no markdown/bold formatting)
|
| 93 |
+
- Professional yet engaging tone
|
| 94 |
+
- Exactly 50-80 words
|
| 95 |
+
- Start directly with the description (no prefixes)
|
| 96 |
+
<end_of_turn>
|
| 97 |
+
<start_of_turn>model
|
| 98 |
+
"""
|
| 99 |
inputs = tokenizer(input_text, return_tensors="pt")
|
| 100 |
outputs = model.generate(**inputs, max_length=512, temperature=0.7, do_sample=True)
|
| 101 |
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|