Codewithsalty commited on
Commit
189f24f
·
verified ·
1 Parent(s): 28addcf

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -54
utils.py CHANGED
@@ -1,55 +1,3 @@
1
- Hugging Face's logo
2
- Hugging Face
3
- Models
4
- Datasets
5
- Spaces
6
- Community
7
- Docs
8
- Enterprise
9
- Pricing
10
-
11
-
12
-
13
- Spaces:
14
-
15
- Codewithsalty
16
- /
17
- brain-tumor-api
18
-
19
-
20
- like
21
- 0
22
-
23
- Logs
24
- App
25
- Files
26
- Community
27
- Settings
28
- brain-tumor-api
29
- /
30
- utils.py
31
-
32
- Codewithsalty's picture
33
- Codewithsalty
34
- Update utils.py
35
- dfea2de
36
- verified
37
- 33 minutes ago
38
- raw
39
-
40
- Copy download link
41
- history
42
- blame
43
- edit
44
- delete
45
-
46
- 2.75 kB
47
- import torch.nn as nn
48
-
49
- # ================================
50
- # 🧠 MODEL CLASSES
51
- # ================================
52
-
53
  # Brain Tumor Detection Model
54
  class BrainTumorModel(nn.Module):
55
  def __init__(self):
@@ -122,5 +70,4 @@ def get_precautions_from_gemini(tumor_type):
122
  "pituitary": "Monitor hormonal levels and follow medication strictly.",
123
  "notumor": "Stay healthy and get annual MRI scans if symptoms appear."
124
  }
125
- return precaution_db.get(tumor_type.lower(), "No specific precautions found.")
126
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Brain Tumor Detection Model
2
  class BrainTumorModel(nn.Module):
3
  def __init__(self):
 
70
  "pituitary": "Monitor hormonal levels and follow medication strictly.",
71
  "notumor": "Stay healthy and get annual MRI scans if symptoms appear."
72
  }
73
+ return precaution_db.get(tumor_type.lower(), "No specific precautions found.")