Hope is the anecdote for despair and depression. Hope of better things to come removes the foreboding with a ray of sunshine. Why should clouds beset me when sunshine is on the way? Praising God also lifts the anguish of soul. God is very pleased when we praise Him in the midst of difficult circumstances or feelings. This shows trust in God. It is an act of the will to hope and praise God when you feel the very opposite. Faith sees what can be instead of focusing on what is now. Here is a statement of faith.
"As a healthy state of the constitution shows itself in the appearance of the face; God will so rejoice your heart, heal all your spiritual maladies, that your face shall testify the happiness that is within you." (Adam Clark's Commentary)
Here is another: "My God will clear the furrows from my brow, and the tear marks from my cheek; therefore will I lift up my head and smile in the face of the storm." (Treasury of David)
God's Word also instructs us in how to think. "Finally, brethren, whatsoever things are true, whatsoever things are honorable, whatsoever things are just, whatsoever things are pure, whatsoever things are lovely, whatsoever things are of good report; if there be any virtue, and if there be any praise, think on these things." Philippians 4:8 (NAS)
God gives you a Helper to carry out His Word. God's Spirit is resident within you to walk with you through your valleys. He wants you to become strong in your inner man through His Spirit such that you have power to overcome feelings of depression or despair. Hope in God! Praise Him! Think on things above. God will lift your countenance.