Not able to submit txt file

I have generated the text file and submitted it to here, but i’m not get evaluated by your interface

Check from sample submission if you are submitting in the right format, if you still do not find any mistake please share your txt file link by uploading it on your google drive.

https://drive.google.com/file/d/1IltMWTNoAkib8bzRVNOr9mj9SgMHWrc_/view?usp=sharing

Your text file is in byte format, but online judge required utf8 encoding.
So you can do this,
generated_text = generated_text[:2000]
with open(‘answer.txt’,‘w’) as file:
file.write(generated_text)

Hope this helped you :blush:

nope sir, still not able to upload it.

I even tried converting it in utf-8 encoding and then try to upload it but it fails

please provide me your complete ipynb notebook, I will check it asap.

https://drive.google.com/open?id=1DoRdx3jMqH7Hy1s75XIzsirDhMNSY2Uz

https://drive.google.com/open?id=1DoRdx3jMqH7Hy1s75XIzsirDhMNSY2Uz

Just checking it with the backend team, wait for a while, will let you know asap.

I just made little changes in your code and submitted it.
https://drive.google.com/file/d/1OzCz5kUazXeiujyw6XCys0JQfYNnnjxI/view?usp=sharing

This is the corrected file. The problem with your code was that your final text file was of len 2000 but actually in the question it means 2000 predicted characters along with 4 initials “apna” so total length must be of 2004.
And this is the reason your code was not judged by the backend.

Hope this cleared your doubt.