Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ import sys
|
|
12 |
from datetime import datetime
|
13 |
from concurrent.futures import ThreadPoolExecutor, as_completed
|
14 |
from typing import List, Dict, Any, Optional, Sequence
|
|
|
15 |
import chromadb
|
16 |
import requests
|
17 |
import streamlit as st
|
@@ -76,13 +77,13 @@ class ResearchConfig:
|
|
76 |
"5. Limitations & Future Directions\n\n"
|
77 |
"Format: Markdown with LaTeX mathematical notation where applicable"
|
78 |
)
|
79 |
-
# Domain-specific prompt additions
|
80 |
DOMAIN_PROMPTS = {
|
81 |
-
"Biomedical Research": "Consider clinical
|
82 |
-
"Legal Research": "
|
83 |
-
"Environmental and Energy Studies": "
|
84 |
-
"Competitive Programming and Theoretical Computer Science": "
|
85 |
-
"Social Sciences": "
|
86 |
}
|
87 |
|
88 |
if not ResearchConfig.DEEPSEEK_API_KEY:
|
|
|
12 |
from datetime import datetime
|
13 |
from concurrent.futures import ThreadPoolExecutor, as_completed
|
14 |
from typing import List, Dict, Any, Optional, Sequence
|
15 |
+
|
16 |
import chromadb
|
17 |
import requests
|
18 |
import streamlit as st
|
|
|
77 |
"5. Limitations & Future Directions\n\n"
|
78 |
"Format: Markdown with LaTeX mathematical notation where applicable"
|
79 |
)
|
80 |
+
# Domain-specific prompt additions for customizable analysis
|
81 |
DOMAIN_PROMPTS = {
|
82 |
+
"Biomedical Research": "Consider clinical trial design, patient outcomes, and recent biomedical breakthroughs.",
|
83 |
+
"Legal Research": "Emphasize legal precedents, case law, and nuanced statutory interpretations.",
|
84 |
+
"Environmental and Energy Studies": "Highlight renewable energy technologies, efficiency metrics, and policy implications.",
|
85 |
+
"Competitive Programming and Theoretical Computer Science": "Focus on algorithmic complexity, innovative proofs, and computational techniques.",
|
86 |
+
"Social Sciences": "Concentrate on economic trends, sociological data, and correlations impacting public policy."
|
87 |
}
|
88 |
|
89 |
if not ResearchConfig.DEEPSEEK_API_KEY:
|