gistillery / requests.org
Benjamin Bossan
Add pdf processor using pypdf
4c2b75c
#+title: Requests
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/clear/' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
: OK
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "Diffusers is the go-to library for state-of-the-art pretrained diffusion models for generating images, audio, and even 3D structures of molecules. Whether you’re looking for a simple inference solution or want to train your own diffusion model, 🤗 Diffusers is a modular toolbox that supports both. Our library is designed with a focus on usability over performance, simple over easy, and customizability over abstractions."
}'
#+end_src
#+RESULTS:
: Submitted job fef72c3aa4394bc7a299291c80a5c06b
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "https://en.wikipedia.org/wiki/Hugging_Face"
}'
#+end_src
#+RESULTS:
: Submitted job f37729bb36104ab4a23cefd0480e4862
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "https://images.openai.com/blob/8a2b0833-55f2-44d6-bf4f-85f9471078f5/Anastronautridingahorseinaphotorealisticstyle6.jpg"
}'
#+end_src
#+RESULTS:
: Submitted job f37729bb36104ab4a23cefd0480e4862
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "https://www.youtube.com/watch?v=H39Z_720T5s"
}'
#+end_src
#+begin_src bash
curl -X 'POST' \
'http://localhost:8080/submit/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "ben",
"content": "https://arxiv.org/pdf/2108.12409.pdf"
}'
#+end_src
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/check_job_status/' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
: Found 3 pending job(s): fef72c3aa4394bc7a299291c80a5c06b, f37729bb36104ab4a23cefd0480e4862, dc3da7b1d5aa47c38dc6713952104f5f
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/recent/' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
| [{"id":"dc3da7b1d5aa47c38dc6713952104f5f" | author:"ben" | summary:"A small bird is perched on the back of a capy capy. It's looking for a place to nestle. It doesn't seem to be finding a suitable place for it | though | because it's not very big. The place is not very flat. " | tags:["#back" | #bird | #capy | #general | #perch | #perched] | date:"2023-05-11T13:16:48"} | {"id":"f37729bb36104ab4a23cefd0480e4862" | author:"ben" | summary:"Goulburn Street is a street in the central business district of Sydney in New South Wales | Australia. It runs from Darling Harbour and Chinatown in the west to Crown Street in the east at Darlinghurst and Surry Hills. It is the only car park operated by Sydney City Council within the CBD and was the first air rights car park in Australia." | tags:["#centralbusinessdistrict" | #darlinghurst | #general | #goulburnstreet | #surryhills | #sydney | #sydneymasoniccentre] | date:"2023-05-11T13:16:47"} | {"id":"fef72c3aa4394bc7a299291c80a5c06b" | author:"ben" | summary:"ChatGPT is able to capture our imagination because of its scale. RLHF (Reinforcement Learning from Human Feedback) is a new approach to NLP that incorporates reinforcement learning and human feedback into NLP. It's impressive to see it work in a new domain at a massive scale." | tags:["#" | #general | #rlhf] | date:"2023-05-11T13:16:45"}] |
#+begin_src bash
curl -X 'GET' \
'http://localhost:8080/recent/rlhf' \
-H 'accept: application/json'
#+end_src
#+RESULTS:
| [{"id":"fef72c3aa4394bc7a299291c80a5c06b" | author:"ben" | summary:"ChatGPT is able to capture our imagination because of its scale. RLHF (Reinforcement Learning from Human Feedback) is a new approach to NLP that incorporates reinforcement learning and human feedback into NLP. It's impressive to see it work in a new domain at a massive scale." | tags:["#" | #general | #rlhf] | date:"2023-05-11T13:16:45"}] |