Spaces:
Runtime error
Runtime error
cleaning up
Browse files- pag/monitor.py +2 -2
pag/monitor.py
CHANGED
|
@@ -312,7 +312,7 @@ def monitor_fields():
|
|
| 312 |
|
| 313 |
if field_name != "Select Field":
|
| 314 |
st.title(":orange[Predict Metrics for Next Month]")
|
| 315 |
-
st.write(f"Press the button below to predict {metric} for the next
|
| 316 |
subcol1, subcol2, subcol3 = st.columns(3)
|
| 317 |
if subcol2.button(f'Predict & Recommend'):
|
| 318 |
|
|
@@ -391,7 +391,7 @@ def monitor_fields():
|
|
| 391 |
crop = "Wheat"
|
| 392 |
|
| 393 |
try:
|
| 394 |
-
prompt = f"given the
|
| 395 |
response = client.chat.completions.create(
|
| 396 |
model="gpt-4o",
|
| 397 |
messages=[
|
|
|
|
| 312 |
|
| 313 |
if field_name != "Select Field":
|
| 314 |
st.title(":orange[Predict Metrics for Next Month]")
|
| 315 |
+
st.write(f"Press the button below to predict {metric} for the next 30 weeks")
|
| 316 |
subcol1, subcol2, subcol3 = st.columns(3)
|
| 317 |
if subcol2.button(f'Predict & Recommend'):
|
| 318 |
|
|
|
|
| 391 |
crop = "Wheat"
|
| 392 |
|
| 393 |
try:
|
| 394 |
+
prompt = f"given the {metric} values weekly for the next 30 weeks, comment if they are appropriate to grow {crop} (write one paragraph showing your conclusion): {metric} values:{predictions}"
|
| 395 |
response = client.chat.completions.create(
|
| 396 |
model="gpt-4o",
|
| 397 |
messages=[
|