Hi @Kayshika_Code, welcome to the Streamlit community!!  
There are series of changes you need to make to successfully deploy your app:

Remove fitz==0.0.1.dev2 from line 1 of requirements.txt 1. It is an outdated package that has been replaced by PyMuPDF.
From reading the med7 docs, you’ll see that you need to include a line in requirements.txt containing https://huggingface.co/kormilitzin/en_core_med7_lg/resolve/main/en_core_med7_lg-any-py3-none-any.whl

Update line 4 to read: spacy==3.1.4 . The med7 model  from Step 2 depends on spacy < 3.2.0 and >=3.1.4.
Replace the image paths in App.py with just the image names. eg: Image.open('image-1.png'). Recall that Streamlit Cloud is unaware of the directory structure of your local machine.
As the model from Step 2 is large (700+ MB), you should cache the model with st.experimental_singleton to reuse the same model across users and app reruns, and prevent exhausting your app resources. Define the following function outside of main():

@st.experimental_singleton
def load_model():
    nlp = spacy.load("en_core_med7_lg")
    return nlp


In your main() method, replace nlp = spacy.load("en_core_med7_lg") with nlp = load_model()


For reference, a fork with the above changes is here: GitHub - snehankekre/Drug-Entity-Extractor 3
Once you make the above changes, your app should successfully deploy! 

image1735×963 169 KB

Happy Streamlit-ing! 
Snehan