Spaces:
Sleeping
Sleeping
Commit
•
4bffb1f
1
Parent(s):
19c5a56
new data
Browse files- app.py +2 -0
- 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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4fa1660ace1144ce900018494fc97ce2b37c99ba690960f3f723b391ed9ca22
|
3 |
+
size 13220748
|