Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
|
| 11 |
client = OpenAI()
|
| 12 |
|
| 13 |
# These are the necessary components that make up the Trials
|
| 14 |
-
|
| 15 |
-
|
| 16 |
# independent: List[str] = Field(..., title="Independent Variables", description="A list of independent variables (ie treatments), which will be intentionally varied across one or more trials")
|
| 17 |
# outcome: List[str] = Field(..., title="Outcome Variables", description="A list of outcome variables (ie dependent or response variables)")
|
| 18 |
|
|
@@ -22,8 +22,8 @@ class Treatment(BaseModel):
|
|
| 22 |
crops: List[str] = Field(..., title="Crops", description="A list of crops being tested in this treatment")
|
| 23 |
fields: List[str] = Field(..., title="Fields", description="A list of fields in which this treatment has occured or will occur")
|
| 24 |
learnings: List[str] = Field(..., title="Learnings", description="A list of lessons learned from this experiment")
|
|
|
|
| 25 |
confoundingFactors: List[str] = Field(..., title="Confounding Factors", description="A list of factors which may impact the outcomes of the experiment that were not planned for")
|
| 26 |
-
#variables: Variables = Field(..., title="Variables", description="Variables (ie factors) in this experiment. Some variables are constant (controlled) and some will vary in order to learn something (independent)")
|
| 27 |
|
| 28 |
class Trial(BaseModel):
|
| 29 |
name: str = Field(..., title="Name", description="The name of this trial")
|
|
|
|
| 11 |
client = OpenAI()
|
| 12 |
|
| 13 |
# These are the necessary components that make up the Trials
|
| 14 |
+
class Variables(BaseModel):
|
| 15 |
+
controlled: List[str] = Field(..., title="Controlled Variables", description="A list of controlled variables, which will be constant (controlled) across all trials")
|
| 16 |
# independent: List[str] = Field(..., title="Independent Variables", description="A list of independent variables (ie treatments), which will be intentionally varied across one or more trials")
|
| 17 |
# outcome: List[str] = Field(..., title="Outcome Variables", description="A list of outcome variables (ie dependent or response variables)")
|
| 18 |
|
|
|
|
| 22 |
crops: List[str] = Field(..., title="Crops", description="A list of crops being tested in this treatment")
|
| 23 |
fields: List[str] = Field(..., title="Fields", description="A list of fields in which this treatment has occured or will occur")
|
| 24 |
learnings: List[str] = Field(..., title="Learnings", description="A list of lessons learned from this experiment")
|
| 25 |
+
variables: Variables = Field(..., title="Variables", description="Variables (ie factors) in this experiment. Some variables are constant (controlled) and some will vary in order to learn something (independent)")
|
| 26 |
confoundingFactors: List[str] = Field(..., title="Confounding Factors", description="A list of factors which may impact the outcomes of the experiment that were not planned for")
|
|
|
|
| 27 |
|
| 28 |
class Trial(BaseModel):
|
| 29 |
name: str = Field(..., title="Name", description="The name of this trial")
|