rosemariafontana commited on
Commit
4be9a2e
·
verified ·
1 Parent(s): c6422d9

more small changes to fit structure

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -66,6 +66,10 @@ class Structure(str, Enum):
66
  LOAMYSAND = 'loamy sand'
67
  SAND = 'sand'
68
  SILT = 'silt'
 
 
 
 
69
 
70
  class Soil(BaseModel):
71
  description: str = Field(..., title="Description", description="A general description of the soil")
@@ -83,17 +87,13 @@ class Planting(BaseModel):
83
  crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
84
  variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
85
  logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
86
- soil: List[Soil] = Field(..., title="Soil", description="Information about the soil associated with or observed during the time of this planting")
 
87
 
88
- class Yield(BaseModel):
89
- quantity: str = Field(..., title="Quantity", description="A description of the total yield (harvested amount) from this planting, including units when available")
90
- quality: str = Field(..., title="Quality", description="The product quality of the harvest. For example, small or large fruits, sweet or tart flavor, easily molding or containing mold, high number of product seconds, etc.")
91
-
92
  class FarmActivities(BaseModel):
93
  name: str = Field(..., title="Name", description="The name of the agricultural field.")
94
  description: str = Field(..., title="Description", description="The description of the agricultural field.")
95
  plantings: List[Planting] = Field(..., title="Plantings", description="All of the plantings which have occurred on this field.")
96
- harvestYield: Yield = Field(..., title="Yield", description="Quantitative and qualitative observations regarding the yield of harvest")
97
 
98
  # These are the components for Trials
99
  # TBD
 
66
  LOAMYSAND = 'loamy sand'
67
  SAND = 'sand'
68
  SILT = 'silt'
69
+
70
+ class Yield(BaseModel):
71
+ quantity: str = Field(..., title="Quantity", description="A description of the total yield (harvested amount) from this planting, including units when available")
72
+ quality: str = Field(..., title="Quality", description="The product quality of the harvest. For example, small or large fruits, sweet or tart flavor, easily molding or containing mold, high number of product seconds, etc.")
73
 
74
  class Soil(BaseModel):
75
  description: str = Field(..., title="Description", description="A general description of the soil")
 
87
  crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
88
  variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
89
  logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
90
+ soil: Soil = Field(..., title="Soil", description="Information about the soil associated with or observed during the time of this planting")
91
+ harvestYield: Yield = Field(..., title="Yield", description="Quantitative and qualitative observations regarding the yield of harvest")
92
 
 
 
 
 
93
  class FarmActivities(BaseModel):
94
  name: str = Field(..., title="Name", description="The name of the agricultural field.")
95
  description: str = Field(..., title="Description", description="The description of the agricultural field.")
96
  plantings: List[Planting] = Field(..., title="Plantings", description="All of the plantings which have occurred on this field.")
 
97
 
98
  # These are the components for Trials
99
  # TBD