Update app.py
Browse files
app.py
CHANGED
|
@@ -280,11 +280,12 @@ def generate_json_pieces(specification, model_version, additional_json_creation_
|
|
| 280 |
|
| 281 |
def process_specifications(data, model_version, json_creation, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input):
|
| 282 |
# This method just drives the process
|
| 283 |
-
if json_creation == "Single JSON Creation":
|
| 284 |
-
|
| 285 |
-
elif json_creation == "Step-wise JSON Creation":
|
| 286 |
-
|
| 287 |
-
return resulting_schema
|
|
|
|
| 288 |
|
| 289 |
with gr.Blocks() as demo:
|
| 290 |
data_input = gr.Textbox(label="Enter your data", placeholder="Type your data here")
|
|
|
|
| 280 |
|
| 281 |
def process_specifications(data, model_version, json_creation, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input):
|
| 282 |
# This method just drives the process
|
| 283 |
+
#if json_creation == "Single JSON Creation":
|
| 284 |
+
# resulting_schema = generate_json(data, model_version)
|
| 285 |
+
#elif json_creation == "Step-wise JSON Creation":
|
| 286 |
+
# resulting_schema = generate_json_pieces(data, model_version, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input)
|
| 287 |
+
#return resulting_schema
|
| 288 |
+
return generate_json(data, model_version)
|
| 289 |
|
| 290 |
with gr.Blocks() as demo:
|
| 291 |
data_input = gr.Textbox(label="Enter your data", placeholder="Type your data here")
|