Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +12 -10
src/streamlit_app.py
CHANGED
|
@@ -128,23 +128,25 @@ if uploaded_file:
|
|
| 128 |
context = "\n\n".join([doc.page_content for doc in relevant_docs])
|
| 129 |
|
| 130 |
prompt = f"""
|
| 131 |
-
Kamu adalah AI
|
| 132 |
-
|
|
|
|
| 133 |
|
| 134 |
Hasil lab pasien:
|
| 135 |
{extracted_text}
|
| 136 |
|
| 137 |
-
Knowledge base Human+
|
| 138 |
{context}
|
| 139 |
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
|
|
|
| 146 |
|
| 147 |
-
Gunakan bahasa
|
| 148 |
"""
|
| 149 |
|
| 150 |
response = client.models.generate_content(
|
|
|
|
| 128 |
context = "\n\n".join([doc.page_content for doc in relevant_docs])
|
| 129 |
|
| 130 |
prompt = f"""
|
| 131 |
+
Kamu adalah AI Longevity Specialist resmi Human+ Bali yang didirikan oleh Benjamin White (@bennywhitethatsright).
|
| 132 |
+
|
| 133 |
+
Filosofi inti: "From Injured → Optimized"
|
| 134 |
|
| 135 |
Hasil lab pasien:
|
| 136 |
{extracted_text}
|
| 137 |
|
| 138 |
+
Knowledge base Human+:
|
| 139 |
{context}
|
| 140 |
|
| 141 |
+
Buatkan rekomendasi protocol yang **sangat personal, positif, dan actionable** dengan struktur berikut:
|
| 142 |
+
|
| 143 |
+
1. **Ringkasan Temuan** (apa yang paling perlu dioptimalkan + motivasi)
|
| 144 |
+
2. **Rekomendasi IV Drip** (The All-In atau varian custom + komposisi yang disarankan)
|
| 145 |
+
3. **Suplemen Harian** (dosis & timing)
|
| 146 |
+
4. **Lifestyle Protocol** (ice bath, structured water, breathing, sunlight)
|
| 147 |
+
5. **Jadwal Retest & Follow-up**
|
| 148 |
|
| 149 |
+
Gunakan bahasa ramah, empowering, dan sesuai voice Benjamin White.
|
| 150 |
"""
|
| 151 |
|
| 152 |
response = client.models.generate_content(
|