awacke1 commited on
Commit
a2f0000
โ€ข
1 Parent(s): ce01e18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -67,11 +67,13 @@ def SpeechSynthesis(result):
67
  components.html(documentHTML5, width=1280, height=300)
68
 
69
  def parse_to_markdown(text):
70
- fields = text.split("|")
71
- markdown = ""
72
- for field in fields:
73
- field = field.strip(" '")
74
- markdown += field + "\n\n"
 
 
75
  return markdown
76
 
77
  def search_arxiv(query):
 
67
  components.html(documentHTML5, width=1280, height=300)
68
 
69
  def parse_to_markdown(text):
70
+ markdown=''
71
+ if len(text) > 0:
72
+ fields = text.split("|")
73
+ markdown = ""
74
+ for field in fields:
75
+ field = field.strip(" '")
76
+ markdown += field + "\n\n"
77
  return markdown
78
 
79
  def search_arxiv(query):