Spaces:
Build error
Build error
furqankassa
commited on
Commit
•
a56a484
1
Parent(s):
03d7cd7
Upload 2 files
Browse files- app.py +37 -0
- requirements.txt +6 -0
app.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import time
|
2 |
+
import re
|
3 |
+
import pandas as pd
|
4 |
+
import numpy as np
|
5 |
+
import torch
|
6 |
+
import torch.nn.functional as F
|
7 |
+
import graphviz as graphviz
|
8 |
+
import pydeck as pdk
|
9 |
+
import streamlit as st
|
10 |
+
|
11 |
+
from transformers import AutoTokenizer, AutoModel
|
12 |
+
from tokenizers import Tokenizer, AddedToken
|
13 |
+
from st_click_detector import click_detector
|
14 |
+
|
15 |
+
st.set_page_config(page_title="OMS Omaha System and LOCUS MH Ontology Models",layout='wide')
|
16 |
+
|
17 |
+
|
18 |
+
st.write("Circulation Categorization")
|
19 |
+
|
20 |
+
st.graphviz_chart('''
|
21 |
+
digraph {
|
22 |
+
29CIRCULATION -> AbnormalBloodPressureReading
|
23 |
+
29CIRCULATION -> AbnormalCardiacLaboratoryResults
|
24 |
+
29CIRCULATION -> AbnormalClotting
|
25 |
+
29CIRCULATION -> AbnormalHeartSoundsMurmurs
|
26 |
+
29CIRCULATION -> AnginalPain
|
27 |
+
29CIRCULATION -> CrampingPainofExtremities
|
28 |
+
29CIRCULATION -> DecreasedPulses
|
29 |
+
29CIRCULATION -> DiscolorationofSkinCyanosis
|
30 |
+
29CIRCULATION -> EdemaSwellinginlegsarmsfeet
|
31 |
+
29CIRCULATION -> ExcessivelyRapidHeartRate
|
32 |
+
29CIRCULATION -> IrregularHeartRate
|
33 |
+
29CIRCULATION -> SyncopalEpisodes(Fainting)Dizziness
|
34 |
+
29CIRCULATION -> TemperatureChangeinAffectedArea
|
35 |
+
29CIRCULATION -> Varicosities
|
36 |
+
}
|
37 |
+
''')
|
requirements.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
transformers
|
3 |
+
numpy
|
4 |
+
pandas
|
5 |
+
st-click-detector
|
6 |
+
graphviz
|