That plant WILL finish, relax.
What is your pot size? Very sudden yellowing like that makes me think that you hit pot-bound just recently and your soil conditions are getting twitchy.
Flush well and check/adjust pH to eliminate salt tox and pH problems as a source.
Re=pot into a larger container.
Enjoy your harvest in a few short weeks!