Update Demo.py
Browse files
Demo.py
CHANGED
@@ -70,9 +70,8 @@ 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 |
lightPipelineModel = LightPipeline(model)
|
73 |
-
data = f""" table_json:{json_data} questions:{question} """
|
74 |
-
data
|
75 |
-
result = lightPipelineModel.fullAnnotate(data)
|
76 |
st.write(result)
|
77 |
return result
|
78 |
|
|
|
70 |
spark_df = spark.createDataFrame([[json_data, question]]).toDF("table_json", "questions")
|
71 |
model = pipeline.fit(spark_df)
|
72 |
lightPipelineModel = LightPipeline(model)
|
73 |
+
table, data = f""" table_json:{json_data} """ , """ questions:{question} """
|
74 |
+
result = lightPipelineModel.fullAnnotate([table, data])
|
|
|
75 |
st.write(result)
|
76 |
return result
|
77 |
|