michaelj commited on
Commit
faf9078
1 Parent(s): e07c4e9
Files changed (1) hide show
  1. main.py +1 -3
main.py CHANGED
@@ -16,9 +16,7 @@ def root():
16
 
17
  @app.post("/img2img")
18
  async def predict(url:str,prompt:str):
19
- body = await request.body()
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")