Spaces:
Running
Running
test
Browse files
main.py
CHANGED
@@ -13,10 +13,10 @@ app = FastAPI()
|
|
13 |
def root():
|
14 |
return {"API": "Sum of 2 Squares"}
|
15 |
|
16 |
-
@app.
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
return "
|
21 |
|
22 |
|
|
|
13 |
def root():
|
14 |
return {"API": "Sum of 2 Squares"}
|
15 |
|
16 |
+
@app.route('/predict', methods=['POST'])
|
17 |
+
def predict():
|
18 |
|
19 |
+
prompt = request.json.get('prompt')
|
20 |
+
return "你好啊"+prompt
|
21 |
|
22 |
|