Spaces:
Sleeping
Sleeping
Upload MiniMed_EHR_Analyst_Spaces.py
Browse filesAdded 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
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
|