abidlabs HF Staff commited on
Commit
ed96bfc
·
verified ·
1 Parent(s): b8df600

Update modules/app.py

Browse files
Files changed (1) hide show
  1. modules/app.py +0 -25
modules/app.py CHANGED
@@ -18,28 +18,3 @@ app.mount("/static", StaticFiles(directory="static"), name="static")
18
  def index() -> FileResponse:
19
  return FileResponse(path="static/index.html", media_type="text/html")
20
 
21
-
22
- @app.get("/infer_biggan")
23
- def biggan(input):
24
- output = requests.request(
25
- "POST",
26
- "https://api-inference.huggingface.co/models/osanseviero/BigGAN-deep-128",
27
- headers={"Authorization": f"Bearer {API_TOKEN}"},
28
- data=json.dumps(input),
29
- )
30
-
31
- return StreamingResponse(BytesIO(output.content), media_type="image/png")
32
-
33
-
34
- @app.get("/infer_t5")
35
- def t5(input):
36
- output = infer_t5(input)
37
-
38
- return {"output": output}
39
-
40
-
41
- @app.get("/query_emotion")
42
- def emotion(start, end):
43
- output = query_emotion(int(start), int(end))
44
-
45
- return {"output": output}
 
18
  def index() -> FileResponse:
19
  return FileResponse(path="static/index.html", media_type="text/html")
20