Deva1211 commited on
Commit
81e2904
·
1 Parent(s): e75df51

Modified files for deployment

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. config.py +3 -3
app.py CHANGED
@@ -5,8 +5,12 @@ import logging
5
  import gc
6
  import warnings
7
  import os
 
8
  from config import MODEL_CONFIGS, DEFAULT_MODEL, MODEL_SETTINGS, GENERATION_DEFAULTS, MEDICAL_SYSTEM_PROMPT, UI_CONFIG
9
 
 
 
 
10
  # Suppress warnings
11
  warnings.filterwarnings("ignore")
12
  logging.getLogger("transformers").setLevel(logging.ERROR)
 
5
  import gc
6
  import warnings
7
  import os
8
+ from huggingface_hub import login
9
  from config import MODEL_CONFIGS, DEFAULT_MODEL, MODEL_SETTINGS, GENERATION_DEFAULTS, MEDICAL_SYSTEM_PROMPT, UI_CONFIG
10
 
11
+ # Login with the secret token
12
+ login(token=os.getenv("HF_TOKEN"))
13
+
14
  # Suppress warnings
15
  warnings.filterwarnings("ignore")
16
  logging.getLogger("transformers").setLevel(logging.ERROR)
config.py CHANGED
@@ -32,7 +32,7 @@ MODEL_CONFIGS = {
32
  }
33
 
34
  # Default model to use
35
- DEFAULT_MODEL = "medllama2"
36
 
37
  # Model loading settings
38
  MODEL_SETTINGS = {
@@ -68,8 +68,8 @@ Remember: This information is for educational purposes only and should not repla
68
 
69
  # UI settings
70
  UI_CONFIG = {
71
- "title": "🏥 MedLLaMA2 Medical Chatbot",
72
- "description": "A medical AI assistant powered by MedLLaMA2. Please note: This is for educational purposes only and should not replace professional medical advice.",
73
  "examples": [
74
  "What are the symptoms of diabetes?",
75
  "How can I maintain a healthy heart?",
 
32
  }
33
 
34
  # Default model to use
35
+ DEFAULT_MODEL = "meditron"
36
 
37
  # Model loading settings
38
  MODEL_SETTINGS = {
 
68
 
69
  # UI settings
70
  UI_CONFIG = {
71
+ "title": "🏥 Meditron Medical Chatbot",
72
+ "description": "A medical AI assistant powered by Meditron 7B. Please note: This is for educational purposes only and should not replace professional medical advice.",
73
  "examples": [
74
  "What are the symptoms of diabetes?",
75
  "How can I maintain a healthy heart?",