Solshine commited on
Commit
45c2a10
1 Parent(s): fc5ee8e

Upload MiniMed_EHR_Analyst_Spaces.py

Browse files

Added install for dependencies to fix error:
ModuleNotFoundError: No module named 'transformers'
Traceback:
File "/home/user/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "/home/user/app/app.py", line 3, in <module>
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM

Files changed (1) hide show
  1. MiniMed_EHR_Analyst_Spaces.py +2 -0
MiniMed_EHR_Analyst_Spaces.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import streamlit as st
2
  import pandas as pd
3
  from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
 
1
+ import os
2
+ os.system('pip install streamlit pandas transformers')
3
  import streamlit as st
4
  import pandas as pd
5
  from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM