Spaces:
Running
Running
test
Browse files
main.py
CHANGED
@@ -16,9 +16,7 @@ def root():
|
|
16 |
|
17 |
@app.post("/img2img")
|
18 |
async def predict(url:str,prompt:str):
|
19 |
-
|
20 |
-
data = json.loads(body)
|
21 |
-
prompt = data.get("prompt")
|
22 |
return f"您好,{url+prompt}"
|
23 |
|
24 |
@app.post("/predict")
|
|
|
16 |
|
17 |
@app.post("/img2img")
|
18 |
async def predict(url:str,prompt:str):
|
19 |
+
|
|
|
|
|
20 |
return f"您好,{url+prompt}"
|
21 |
|
22 |
@app.post("/predict")
|