Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,10 @@ def prompt_model(model_id, system_prompt, user_prompt):
|
|
37 |
{"role": "assistant", "content": ""}
|
38 |
]
|
39 |
|
40 |
-
|
|
|
41 |
|
42 |
-
return
|
43 |
|
44 |
def fine_tune_model(model_id):
|
45 |
tokenizer = download_model(model_id)
|
|
|
37 |
{"role": "assistant", "content": ""}
|
38 |
]
|
39 |
|
40 |
+
output = pipe(messages)
|
41 |
+
print(output)
|
42 |
|
43 |
+
return output[0]["generated_text"][-1]["content"]
|
44 |
|
45 |
def fine_tune_model(model_id):
|
46 |
tokenizer = download_model(model_id)
|