Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,7 @@ print("Model ready!")
|
|
| 32 |
def generate_response(message, history):
|
| 33 |
# Format the prompt exactly how your agent was trained
|
| 34 |
prompt = (
|
| 35 |
-
"System: You are an
|
| 36 |
-
"You are also a world-class expert in all fields related to materials science, "
|
| 37 |
-
"including thermodynamics, crystallography, polymers, metallurgy, and nanomaterials.\n\n"
|
| 38 |
-
f"User: {message}\n\n"
|
| 39 |
-
"Assistant:"
|
| 40 |
)
|
| 41 |
|
| 42 |
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
|
|
|
| 32 |
def generate_response(message, history):
|
| 33 |
# Format the prompt exactly how your agent was trained
|
| 34 |
prompt = (
|
| 35 |
+
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:"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
)
|
| 37 |
|
| 38 |
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|