dipankardas011 commited on
Commit
01e3ca2
1 Parent(s): aa4a0d4

Added docs

Browse files

Signed-off-by: Dipankar Das <dipankardas0115@gmail.com>

Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -17,6 +17,10 @@ async def docs_redirect():
17
 
18
  @app.get("/generate")
19
  def generate(url: str):
 
 
 
 
20
  # url = "https://www.ilankelman.org/stopsigns/australia.jpg"
21
  image = Image.open(requests.get(url, stream=True).raw)
22
 
 
17
 
18
  @app.get("/generate")
19
  def generate(url: str):
20
+ """
21
+ https://huggingface.co/docs/transformers/main/en/model_doc/pix2struct#transformers.Pix2StructForConditionalGeneration
22
+ https://huggingface.co/google/pix2struct-widget-captioning-large/blob/main/README.md
23
+ """
24
  # url = "https://www.ilankelman.org/stopsigns/australia.jpg"
25
  image = Image.open(requests.get(url, stream=True).raw)
26