Spaces:
Runtime error
Runtime error
test get
Browse files- app_multi.py +13 -0
app_multi.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from typing import Union
|
| 2 |
|
| 3 |
from argparse import ArgumentParser
|
|
|
|
| 4 |
|
| 5 |
import asyncio
|
| 6 |
import json
|
|
@@ -463,6 +464,18 @@ with app:
|
|
| 463 |
queue=False
|
| 464 |
)
|
| 465 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 466 |
app.queue(
|
| 467 |
concurrency_count=1,
|
| 468 |
max_size=20,
|
|
|
|
| 1 |
from typing import Union
|
| 2 |
|
| 3 |
from argparse import ArgumentParser
|
| 4 |
+
from flask import Flask, request
|
| 5 |
|
| 6 |
import asyncio
|
| 7 |
import json
|
|
|
|
| 464 |
queue=False
|
| 465 |
)
|
| 466 |
|
| 467 |
+
app = Flask(__name__)
|
| 468 |
+
|
| 469 |
+
# Existing code...
|
| 470 |
+
|
| 471 |
+
@app.route('/test', methods=['GET'])
|
| 472 |
+
def test():
|
| 473 |
+
return "Connexion sucess ! "
|
| 474 |
+
|
| 475 |
+
if __name__ == '__main__':
|
| 476 |
+
app.run()
|
| 477 |
+
|
| 478 |
+
|
| 479 |
app.queue(
|
| 480 |
concurrency_count=1,
|
| 481 |
max_size=20,
|