Muhammadtaha12 commited on
Commit
c934db1
·
verified ·
1 Parent(s): 3fce293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,9 +1,11 @@
1
- import os
2
  import streamlit as st
3
  from groq import Groq
 
 
4
  GROQ_API_KEY = "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"
5
- # Initialize Groq Client
6
- client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
 
7
 
8
  # Disease and Treatment Information Data
9
  diseases_info = {
@@ -47,7 +49,6 @@ diseases_info = {
47
  "symptoms": ["persistent sadness", "loss of interest", "fatigue", "changes in appetite or sleep patterns"],
48
  "treatment": "Antidepressants, therapy (CBT), exercise, and social support.",
49
  },
50
- # Additional Diseases
51
  "migraine": {
52
  "symptoms": ["severe headache", "nausea", "sensitivity to light and sound"],
53
  "treatment": "Prescription medications, rest in a dark room, and lifestyle adjustments.",
@@ -111,4 +112,3 @@ def main():
111
  # Run the app
112
  if __name__ == "__main__":
113
  main()
114
-
 
 
1
  import streamlit as st
2
  from groq import Groq
3
+
4
+ # Define the Groq API Key
5
  GROQ_API_KEY = "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"
6
+
7
+ # Initialize Groq Client using the API key
8
+ client = Groq(api_key=GROQ_API_KEY)
9
 
10
  # Disease and Treatment Information Data
11
  diseases_info = {
 
49
  "symptoms": ["persistent sadness", "loss of interest", "fatigue", "changes in appetite or sleep patterns"],
50
  "treatment": "Antidepressants, therapy (CBT), exercise, and social support.",
51
  },
 
52
  "migraine": {
53
  "symptoms": ["severe headache", "nausea", "sensitivity to light and sound"],
54
  "treatment": "Prescription medications, rest in a dark room, and lifestyle adjustments.",
 
112
  # Run the app
113
  if __name__ == "__main__":
114
  main()