Spaces:
Sleeping
Sleeping
saifeddinemk
commited on
Commit
•
b0338f5
1
Parent(s):
45e4723
Fixed app v2
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def match_cv_to_jobs(cv_text, job_descriptions_text):
|
|
42 |
# Generate response from the causal model
|
43 |
inputs = tokenizer(prompt, return_tensors="pt")
|
44 |
try:
|
45 |
-
outputs = causal_model.generate(**inputs, max_length=
|
46 |
response_content = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
|
47 |
debug_info += f"Model Response: {response_content}\n"
|
48 |
|
|
|
42 |
# Generate response from the causal model
|
43 |
inputs = tokenizer(prompt, return_tensors="pt")
|
44 |
try:
|
45 |
+
outputs = causal_model.generate(**inputs, max_length=1024)
|
46 |
response_content = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
|
47 |
debug_info += f"Model Response: {response_content}\n"
|
48 |
|