Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,22 +34,15 @@ with open(st.session_state['paper'],'r+', encoding = "utf-8") as f:
|
|
34 |
string = f.read()
|
35 |
extractions = json.loads(string)
|
36 |
for extraction in extractions:
|
37 |
-
json_data = json.loads(extraction
|
38 |
json_string = json.dumps(json_data, indent=4)
|
39 |
st.text_area("", value=json_string, height=200)
|
40 |
break
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
databases = []
|
45 |
-
with open(args.databases_location,'r+', encoding = "utf-8") as f:
|
46 |
-
for item in jsonlines.Reader(f):
|
47 |
-
databases.append(item)
|
48 |
-
|
49 |
|
50 |
|
51 |
-
|
52 |
-
|
53 |
##########
|
54 |
# Question Answering
|
55 |
##########
|
|
|
34 |
string = f.read()
|
35 |
extractions = json.loads(string)
|
36 |
for extraction in extractions:
|
37 |
+
json_data = json.loads(extraction)
|
38 |
json_string = json.dumps(json_data, indent=4)
|
39 |
st.text_area("", value=json_string, height=200)
|
40 |
break
|
41 |
|
42 |
+
if st.button('Transform CDE '):
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
|
45 |
+
|
|
|
46 |
##########
|
47 |
# Question Answering
|
48 |
##########
|