ka1kuk commited on
Commit
ecc8bf1
1 Parent(s): 73c21f4

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +0 -10
apis/chat_api.py CHANGED
@@ -1,5 +1,4 @@
1
  import argparse
2
- import markdown2
3
  import os
4
  import sys
5
  import time
@@ -145,15 +144,6 @@ class ChatAPIApp:
145
  data_response = streamer.chat_return_dict(stream_response)
146
  return data_response
147
 
148
- def get_readme(self):
149
- readme_path = Path(__file__).parents[1] / "README.md"
150
- with open(readme_path, "r", encoding="utf-8") as rf:
151
- readme_str = rf.read()
152
- readme_html = markdown2.markdown(
153
- readme_str, extras=["table", "fenced-code-blocks", "highlightjs-lang"]
154
- )
155
- return readme_html
156
-
157
  def setup_routes(self):
158
  for prefix in ["", "/v1", "/api", "/api/v1"]:
159
  if prefix in ["/api/v1"]:
 
1
  import argparse
 
2
  import os
3
  import sys
4
  import time
 
144
  data_response = streamer.chat_return_dict(stream_response)
145
  return data_response
146
 
 
 
 
 
 
 
 
 
 
147
  def setup_routes(self):
148
  for prefix in ["", "/v1", "/api", "/api/v1"]:
149
  if prefix in ["/api/v1"]: