Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -371,6 +371,19 @@ def voice_chat(audio, history):
|
|
| 371 |
|
| 372 |
# ββ PHASE D: PROTOCOL GENERATOR + REPORT WRITER + HYPOTHESIS ββββββ
|
| 373 |
def generate_protocol(experiment_type, specific_params):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 374 |
if not GROQ_KEY: return "Error: Add GROQ_API_KEY to Space Settings."
|
| 375 |
if not experiment_type: return "Please select an experiment type."
|
| 376 |
try:
|
|
|
|
| 371 |
|
| 372 |
# ββ PHASE D: PROTOCOL GENERATOR + REPORT WRITER + HYPOTHESIS ββββββ
|
| 373 |
def generate_protocol(experiment_type, specific_params):
|
| 374 |
+
# CRITICAL DEFINITIONS - never interpret these wrong
|
| 375 |
+
DEFINITIONS = (
|
| 376 |
+
"CRITICAL: TGT = Thrombogenicity Tester device. "
|
| 377 |
+
"TGT measures blood CLOTTING and THROMBOSIS using Arduino Uno stepper motor rotating blood samples. "
|
| 378 |
+
"TGT does NOT measure glucose. TGT biomarkers are TAT PF1.2 free hemoglobin platelets. "
|
| 379 |
+
"TAT = Thrombin-Antithrombin complex normal below 8 ng/mL. "
|
| 380 |
+
"PF1.2 = Prothrombin Fragment 1.2 normal below 2.0 nmol/L. "
|
| 381 |
+
"Free hemoglobin normal below 20 mg/L. Platelet count normal above 150 thousand per uL. "
|
| 382 |
+
"MCL = Mock Circulatory Loop cardiovascular simulation. "
|
| 383 |
+
"PIV = Particle Image Velocimetry laser flow measurement. "
|
| 384 |
+
"uPAD = microfluidic Paper Analytical Device for creatinine kidney disease detection. "
|
| 385 |
+
)
|
| 386 |
+
experiment_type = experiment_type # use as is
|
| 387 |
if not GROQ_KEY: return "Error: Add GROQ_API_KEY to Space Settings."
|
| 388 |
if not experiment_type: return "Please select an experiment type."
|
| 389 |
try:
|