plutoa386 commited on
Commit
b98a0f7
·
1 Parent(s): 23c38f1

fixed llm base_url from deprecated link to up to date link, added example patient ID to app.py

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. crew.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ with gr.Blocks() as demo:
36
  label="Select Risk Assessment Type"
37
  )
38
  doc_id = gr.Textbox(
39
- label="Patient Document ID",
40
- placeholder="e.g., 265e9lboNaBH9bQE0CHR"
41
  )
42
  output = gr.JSON()
43
  btn = gr.Button("Get Risk Assessment (CrewAI + SHAP)")
 
36
  label="Select Risk Assessment Type"
37
  )
38
  doc_id = gr.Textbox(
39
+ label="Patient Document ID <umWSG13rLSfHqqJlq1WluPzjLB93>",
40
+ placeholder="e.g., umWSG13rLSfHqqJlq1WluPzjLB93"
41
  )
42
  output = gr.JSON()
43
  btn = gr.Button("Get Risk Assessment (CrewAI + SHAP)")
crew.py CHANGED
@@ -29,7 +29,7 @@ lifestyle_feature_names = metadata['feature_names']
29
  audio_explainer = shap.TreeExplainer(audio_model)
30
  lifestyle_explainer = shap.TreeExplainer(lifestyle_model)
31
 
32
- placeholder_lifestyle_ID = "265e9lboNaBH9bQE0CHR"
33
 
34
 
35
  # Define tools for the agents
@@ -333,7 +333,7 @@ import os
333
 
334
  llm = LLM(
335
  model="huggingfacehub",
336
- base_url="https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2",
337
  api_key=os.getenv("HF_Token"),
338
  temperature=0.7,
339
  max_tokens=512
 
29
  audio_explainer = shap.TreeExplainer(audio_model)
30
  lifestyle_explainer = shap.TreeExplainer(lifestyle_model)
31
 
32
+ placeholder_lifestyle_ID = "umWSG13rLSfHqqJlq1WluPzjLB93"
33
 
34
 
35
  # Define tools for the agents
 
333
 
334
  llm = LLM(
335
  model="huggingfacehub",
336
+ base_url="https://router.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2",
337
  api_key=os.getenv("HF_Token"),
338
  temperature=0.7,
339
  max_tokens=512