ZongqianLi commited on
Commit
73c3340
·
verified ·
1 Parent(s): d2c74ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
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 .strip())
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
  ##########