Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def parse_resume(text):
|
|
42 |
for key, prompt in prompts.items():
|
43 |
# Generate model response for each field
|
44 |
inputs = tokenizer(prompt + text, return_tensors="pt")
|
45 |
-
outputs = model.generate(**inputs, max_length=
|
46 |
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
47 |
|
48 |
if key == 'email':
|
|
|
42 |
for key, prompt in prompts.items():
|
43 |
# Generate model response for each field
|
44 |
inputs = tokenizer(prompt + text, return_tensors="pt")
|
45 |
+
outputs = model.generate(**inputs, max_length=50000)
|
46 |
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
47 |
|
48 |
if key == 'email':
|