Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import zipfile
|
|
4 |
import io
|
5 |
|
6 |
# Load AI assistant (can change model to faster one if needed)
|
7 |
-
assistant = pipeline("text-generation", model="
|
8 |
|
9 |
def generate_code(prompt):
|
10 |
formatted = f"Create a full website. Include:\n[HTML]\n...HTML here...\n[CSS]\n...CSS here...\n[JS]\n...JS here...\nUser Prompt: {prompt}"
|
|
|
4 |
import io
|
5 |
|
6 |
# Load AI assistant (can change model to faster one if needed)
|
7 |
+
assistant = pipeline("text-generation", model="Salesforce/codegen-350M-multi", max_new_tokens=512)
|
8 |
|
9 |
def generate_code(prompt):
|
10 |
formatted = f"Create a full website. Include:\n[HTML]\n...HTML here...\n[CSS]\n...CSS here...\n[JS]\n...JS here...\nUser Prompt: {prompt}"
|