Update app.py
Browse files
app.py
CHANGED
|
@@ -11,24 +11,24 @@ 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 |
-
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 |
-
|
| 19 |
-
class Treatment(BaseModel):
|
| 20 |
-
name: str = Field(..., title="Name", description="The treatment name")
|
| 21 |
-
description: str = Field(..., title="Description", description="The treatment description, including the conditions within this treatment")
|
| 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")
|
| 30 |
description: str = Field(..., title="Description", description="A description of this trial")
|
| 31 |
-
treatments: List[
|
| 32 |
|
| 33 |
#################################################################################
|
| 34 |
# These are the necessary components that make up the Interactions
|
|
|
|
| 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 |
+
|
| 19 |
+
#class Treatment(BaseModel):
|
| 20 |
+
# name: str = Field(..., title="Name", description="The treatment name")
|
| 21 |
+
# description: str = Field(..., title="Description", description="The treatment description, including the conditions within this treatment")
|
| 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")
|
| 30 |
description: str = Field(..., title="Description", description="A description of this trial")
|
| 31 |
+
treatments: List[str] = Field(..., title="Treatments", description="A list of different treatments (strips or blocks with the same conditions applied) performed by the partner")
|
| 32 |
|
| 33 |
#################################################################################
|
| 34 |
# These are the necessary components that make up the Interactions
|