Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ model.to(device)
|
|
17 |
|
18 |
def generate_code(prompt):
|
19 |
# Refined prompt
|
20 |
-
full_prompt = f"Please generate a basic HTML template for a personal blog. The output should be only the HTML code."
|
21 |
|
22 |
# Tokenize the input
|
23 |
input_tensor = tokenizer(full_prompt, return_tensors="pt", padding=True, truncation=True).to(device)
|
|
|
17 |
|
18 |
def generate_code(prompt):
|
19 |
# Refined prompt
|
20 |
+
full_prompt = f"Please generate a basic HTML template for a personal blog, including a header, main content area for posts, and a footer. The output should be only the HTML code."
|
21 |
|
22 |
# Tokenize the input
|
23 |
input_tensor = tokenizer(full_prompt, return_tensors="pt", padding=True, truncation=True).to(device)
|