Skip to content

anchsk/python-gen-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative AI Course Tasks

use Python 3.11.9 (or 3.10.14)

Create a .venv and point it to a Python 3.11.9 installation

pip install langchain==0.1.11 gradio==5.23.2 transformers==4.38.2 bs4==0.0.2 requests==2.31.0 torch==2.2.1

Image captioning app

cd image_captioning
python3 image_captioning_app.py

image_captioning_app.py This app takes an image as input and generates a caption for it using a pre-trained image captioning model (BLIP). The interface is made with Gradio.

app_screenshot_interface app_screenshot

Url captioner

Takes the url of a webpage and generate a list of image urls or local paths with captions.

cd url_captioner
python3 automate_url_captioner.py
python3 local_captioner.py

About

Generative AI Course tasks including the Image Captioning app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages