yoinked commited on
Commit
956ed72
·
verified ·
1 Parent(s): b005dc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -103,7 +103,8 @@ def get_paper_markdown(paperid):
103
  if fname is None:
104
  return "## paper not found"
105
  else:
106
- paper = fs.read(fname).split("---")[2]
 
107
  return paper
108
 
109
  def publish_paper(title, authors, tags, abst, data):
 
103
  if fname is None:
104
  return "## paper not found"
105
  else:
106
+ with fs.open(fname, "r") as f:
107
+ papertxt = f.read()
108
  return paper
109
 
110
  def publish_paper(title, authors, tags, abst, data):