Update Demo.py
Browse files
Demo.py
CHANGED
@@ -70,9 +70,6 @@ def fit_data(pipeline, json_data, question):
|
|
70 |
spark_df = spark.createDataFrame([[json_data, question]]).toDF("table_json", "questions")
|
71 |
model = pipeline.fit(spark_df)
|
72 |
result = model.transform(spark_df)
|
73 |
-
|
74 |
-
lia= result.select("answers_wtq.result", "answers_sqa.result").tolist()
|
75 |
-
lia
|
76 |
pan = result.select("answers_wtq.result", "answers_sqa.result").toPandas()
|
77 |
pan
|
78 |
|
|
|
70 |
spark_df = spark.createDataFrame([[json_data, question]]).toDF("table_json", "questions")
|
71 |
model = pipeline.fit(spark_df)
|
72 |
result = model.transform(spark_df)
|
|
|
|
|
|
|
73 |
pan = result.select("answers_wtq.result", "answers_sqa.result").toPandas()
|
74 |
pan
|
75 |
|