bstraehle commited on
Commit
483c87c
1 Parent(s): 94ca6da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,9 +37,10 @@ def prompt_model(model_id, system_prompt, user_prompt):
37
  {"role": "assistant", "content": ""}
38
  ]
39
 
40
- outputs = pipe(messages)
 
41
 
42
- return outputs[0]["generated_text"][-1]
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)