xulh
commited on
Commit
·
c2a676a
1
Parent(s):
7651b68
代码初始化
Browse files
inference-api/inference.py
CHANGED
@@ -7,7 +7,7 @@ app = FastAPI()
|
|
7 |
API_URL = "https://api-inference.huggingface.co/models/cardiffnlp/twitter-roberta-base-sentiment-latest"
|
8 |
|
9 |
|
10 |
-
@app.post("/api-inference")
|
11 |
def get_version(item: ApiModel):
|
12 |
# payload = {
|
13 |
# "inputs": "Today is a great day",
|
|
|
7 |
API_URL = "https://api-inference.huggingface.co/models/cardiffnlp/twitter-roberta-base-sentiment-latest"
|
8 |
|
9 |
|
10 |
+
@app.post("/api-inference/")
|
11 |
def get_version(item: ApiModel):
|
12 |
# payload = {
|
13 |
# "inputs": "Today is a great day",
|