bvd757 commited on
Commit
407e6f0
·
1 Parent(s): cbc6a55
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,7 +26,7 @@ def install_java():
26
  @st.cache_resource
27
  def load_assets():
28
  openai.api_key = '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'
29
- install_java()
30
  #tool = language_tool_python.LanguageTool('ru-RU', language_tool_download_version="6.1")
31
  tool = None
32
  return tool
@@ -40,8 +40,8 @@ def load_assets():
40
  # return "\n".join(full_text)
41
  def extract_text_from_docx(file):
42
  text = mammoth.convert_to_markdown(file).value
43
- #for symbol in ".,!?()[]:;":
44
- # text = text.replace(f"\{symbol}", symbol)
45
  return text
46
 
47
 
 
26
  @st.cache_resource
27
  def load_assets():
28
  openai.api_key = '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'
29
+ #install_java()
30
  #tool = language_tool_python.LanguageTool('ru-RU', language_tool_download_version="6.1")
31
  tool = None
32
  return tool
 
40
  # return "\n".join(full_text)
41
  def extract_text_from_docx(file):
42
  text = mammoth.convert_to_markdown(file).value
43
+ for symbol in ".,!?()[]:;":
44
+ text = text.replace(f"\{symbol}", symbol)
45
  return text
46
 
47