Backend with Stable Endpoints-Runpod

Step 1:

Open the colab and download it as an .ipynb file→

Google Colaboratory

Screenshot 2023-03-26 at 7.17.12 PM.png

Step 2:

Go to our Runpod running stable diffusion and click on the upload files button to upload the downloaded .ipynb file.

Screenshot 2023-03-26 at 1.33.48 PM.png

Once the file is uploaded, click on the ⏩ button to run all the cells automatically.

Screenshot 2023-03-26 at 1.34.22 PM.png

It will take 2-3 minutes to run all the cells. Ignore any errors related to root user as a pip environment isn’t required here.

Step 3:

We have our End point here generated by the last cell! use the public url with /ocr as endpoint suffix and plug it inside the frontend.

So here the final ocr endpoint that goes inside the frontend code will look like-

https://c57d-196-216-134-244.ngrok.io/ocr

Screenshot 2023-03-26 at 1.35.18 PM.png