orionweller commited on
Commit
4bffb1f
1 Parent(s): 19c5a56
Files changed (2) hide show
  1. app.py +2 -0
  2. example_output.json +2 -2
app.py CHANGED
@@ -83,6 +83,8 @@ def load_data_example():
83
 
84
 
85
  def create_instance(prompt, output):
 
 
86
  # get the query and specific query by extracting the values on that line
87
  query = [item for item in prompt.split("\n") if "Query:" in item][0].replace("Query:", "").strip()
88
  instruction = [item for item in prompt.split("\n") if "Specific Query:" in item][0].replace("Specific Query:", "").strip()
 
83
 
84
 
85
  def create_instance(prompt, output):
86
+ if output is None:
87
+ return []
88
  # get the query and specific query by extracting the values on that line
89
  query = [item for item in prompt.split("\n") if "Query:" in item][0].replace("Query:", "").strip()
90
  instruction = [item for item in prompt.split("\n") if "Specific Query:" in item][0].replace("Specific Query:", "").strip()
example_output.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f3367f49b1ee61801cc80e56caeee04a60e451b22b215d46ea4a3ce52a93f949
3
- size 66632
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4fa1660ace1144ce900018494fc97ce2b37c99ba690960f3f723b391ed9ca22
3
+ size 13220748