Spaces:
Sleeping
Sleeping
Update MiniMed_EHR_Analyst_Spaces.py
Browse files
MiniMed_EHR_Analyst_Spaces.py
CHANGED
|
@@ -5,11 +5,10 @@ from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
|
|
| 5 |
#Note this should be used always in compliance with applicable laws and regulations if used with real patient data.
|
| 6 |
|
| 7 |
# Load the tokenizer and model:
|
| 8 |
-
# Now is
|
| 9 |
-
# formerly pseudolab/K23_MiniMed by Tonic (Note: This is a large model and will take a while to download)
|
| 10 |
# Config issues persist with this model, unfortunately. It may not be ready for use.
|
| 11 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 12 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 13 |
|
| 14 |
#Upload Patient Data
|
| 15 |
uploaded_file = st.file_uploader("Choose a CSV file", type="csv")
|
|
|
|
| 5 |
#Note this should be used always in compliance with applicable laws and regulations if used with real patient data.
|
| 6 |
|
| 7 |
# Load the tokenizer and model:
|
| 8 |
+
# Now is pseudolab/K23_MiniMed by Tonic (Note: This model has been struggling to operate without config errors)
|
|
|
|
| 9 |
# Config issues persist with this model, unfortunately. It may not be ready for use.
|
| 10 |
+
tokenizer = AutoTokenizer.from_pretrained("AutoTokenizer.from_pretrained("pseudolab/K23_MiniMed)
|
| 11 |
+
model = AutoModelForCausalLM.from_pretrained("pseudolab/K23_MiniMed)
|
| 12 |
|
| 13 |
#Upload Patient Data
|
| 14 |
uploaded_file = st.file_uploader("Choose a CSV file", type="csv")
|