abdullahmubeen10 commited on
Commit
ce68d86
·
verified ·
1 Parent(s): 7d949b4

Update Demo.py

Browse files
Files changed (1) hide show
  1. Demo.py +0 -3
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