Better HN
topnewbestaskshowjobs
Log inSign up

durraniu

5 karma · joined Jul 26, 2024 (2y ago) · 10 submissions

Submissions

comment 1y ago · link · parent

That's really cool! I made something similar but much simpler using R Shiny.

Edit: Looking at the featured story, I notice that the character illustration is not consistent currently. I got relatively consistent character illustration from scene to scene by asking the LLM to write a prompt for image generation based on the story text and use the same character description in each sentence. That got me pretty consistent character drawings. Also, to keep the same drawing style, my prompt was like:

Drawing style e.g., Digital painting {drawing prompt}

2.

What app framework do you recommend for data scientists?

2 points · by durraniu · 1y ago · 1 comment

3.

What're Your Reviews for Mechanics of Machine Learning Book by Jeremy Howard?

1 points · by durraniu · 2y ago · discuss

comment 2y ago · link · parent

This was a fun project for shiny app contest. This app allows users to generate AI-written stories and illustrations. The app captures user inputs—such as the story’s opening sentence, number of sentences, drawing instructions, and title—and utilizes Cloudflare’s Workers Model API for text generation (Llama 3.1) and image generation (Stable Diffusion). The app compiles story content and images into a Quarto-based revealjs slide deck that is generated in the app. Users may also change the theme of the slide deck. I hope you have fun generating different stories if you give it a go.

5.

(Side Project) StoRytime: Create and Illustrate Short Stories with AI(umair.shinyapps.io ↗)

1 points · by durraniu · 2y ago · 1 comment

comment 2y ago · link · parent

I am working on an app for creating stories with illustrations in a revealjs slide deck.

The idea is that a user would handwrite or type the first sentence of a story they want to write. This sentence would be used by llama 3.1 as a prompt to make a short story. Then the story is fed to stable diffusion to create image illustrations. Finally, all of it is combined into a slide deck that users can see in the app and also download if they want.

I am using Shiny and Quarto for this project.

comment 2y ago · link · parent

This looks really cool. I have experience with shiny apps in R, and Python has a shiny package too now. FastHTML looks a lot like Python shiny without routes. I think both of these frameworks are great for people with no web dev experience. It would be great if there is some discussion of htmx and why it is used in the tutorials section of FastHTML docs.

comment 2y ago · link · parent

GPT4o is pretty great at writing R in my experience. Particularly for data wrangling. But also shiny apps.

comment 2y ago · link · parent

There are multiple packages in R for using LLMs. One such package is tidychatmodels.

comment 2y ago · link · parent

What do you think about the mechanics of machine learning book by Jeremy Howard? It seems to have a systematic approach to fit models and improve them.