Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,8 @@ print("Model ready!")
|
|
| 31 |
|
| 32 |
def generate_response(message, history):
|
| 33 |
# Format the prompt exactly how your agent was trained
|
| 34 |
-
prompt =
|
| 35 |
-
|
| 36 |
-
)
|
| 37 |
|
| 38 |
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
| 39 |
|
|
|
|
| 31 |
|
| 32 |
def generate_response(message, history):
|
| 33 |
# Format the prompt exactly how your agent was trained
|
| 34 |
+
prompt = f"System: You are an AI Semiconductor Process Engineer. Output your reasoning in <think> tags, your diagnosis in <diagnosis> tags, and your parameter adjustments in <experiment> tags.\n\nUser: {message}\n\nAssistant:"
|
| 35 |
+
|
|
|
|
| 36 |
|
| 37 |
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
| 38 |
|