smgc commited on
Commit
a5d1c4e
·
verified ·
1 Parent(s): 22d1a47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -5,7 +5,11 @@ import time
5
 
6
  app = Flask(__name__)
7
 
8
- @app.route('/v1/chat/completions', methods=['POST'])
 
 
 
 
9
  def handle_request():
10
  try:
11
  body = request.json
 
5
 
6
  app = Flask(__name__)
7
 
8
+ @app.route('/')
9
+ def index():
10
+ return "text-to-image with siliconflow", 200
11
+
12
+ @app.route('/ai/v1/chat/completions', methods=['POST'])
13
  def handle_request():
14
  try:
15
  body = request.json