Spaces:
Sleeping
Sleeping
rogerxavier
commited on
Commit
•
158f04d
1
Parent(s):
75ee736
Update api.py
Browse files
api.py
CHANGED
@@ -13,6 +13,10 @@ from ofa_ocr import ofa_ocr_gr ##导入ofa_ocr中的大函数,方便使用其获
|
|
13 |
|
14 |
app = FastAPI()
|
15 |
|
|
|
|
|
|
|
|
|
16 |
@app.get("/infer_t5")
|
17 |
def t5(input):
|
18 |
|
|
|
13 |
|
14 |
app = FastAPI()
|
15 |
|
16 |
+
@app.get("/inference")
|
17 |
+
def inference():
|
18 |
+
return "<p>Hello, World!</p>"
|
19 |
+
|
20 |
@app.get("/infer_t5")
|
21 |
def t5(input):
|
22 |
|