Skip to main content

multi-lingual-storytelling-dall-e

Mudrik, N., Charles, A., “Multi-Lingual DALL-E Storytime”. Arxiv. (2022). https://arxiv.org/abs/2212.11985

While recent advancements in artificial intelligence (AI) language models demonstrate cutting-edge performance when working with English texts, equivalent models do not exist in other languages or do not reach the same performance level. This undesired effect of AI advancements increases the gap between access to new technology from different populations across the world. This unsought bias mainly discriminates against individuals whose English skills are less developed, e.g., non-English speakers children. Following significant advancements in AI research in recent years, OpenAI has recently presented DALL-E: a powerful tool for creating images based on English text prompts. While DALL-E is a promising tool for many applications, its decreased performance when given input in a different language, limits its audience and deepens the gap between populations. An additional limitation of the current DALL-E model is that it only allows for the creation of a few images in response to a given input prompt, rather than a series of consecutive coherent frames that tell a story or describe a process that changes over time. Here, we present an easy-to-use automatic DALL-E storytelling framework that leverages the existing DALL-E model to enable fast and coherent visualizations of non-English songs and stories, pushing the limit of the one-step-at-a-time option DALL-E currently offers. We show that our framework is able to effectively visualize stories from non-English texts and portray the changes in the plot over time. It is also able to create a narrative and maintain interpretable changes in the description across frames. Additionally, our framework offers users the ability to specify constraints on the story elements, such as a specific location or context, and to maintain a consistent style throughout the visualization.

How to use?

one time pre-steps:

  1. create an account in openai and store your api key. You will have to type your key later.
  2. create a free Google workspace account, create credetials, and download the associated json file. (https://cloud.google.com/apis)
  3. rename the json file to "translation.json"

using the package:

  1. pip install the package
  2. import the package
  3. run song2images([name of text file], parameters)
  4. You will find the set of images in the folder 'images' under the current directory
  5. in order to create a figure of subplots, run _create_subplots_fig(path of saved images, num_columns (int), path_save = [where to save the subplots fig?], title = [name of file? without .png]) _
  6. in order to save to gif, run create_gif(path of images, name_save = [how to call the gif?], path_save = [where to save the gif?])

Release files for multi-lingual-storytelling-dall-e 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multi-lingual-storytelling-dall-e 0.0.1
File Size Uploaded
multi-lingual-storytelling-dall-e-0.0.1.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for multi-lingual-storytelling-dall-e 0.0.1
File Interpreter ABI Platform
multi_lingual_storytelling_dall_e-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 47.8 kB

Release files / multi-lingual-storytelling-dall-e-0.0.1.tar.gz

Download URL multi-lingual-storytelling-dall-e-0.0.1.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
71622f1e9180749e2aea9835fbaf3f5ca47813b18f74ae7aa790d0abcf2e19f7
BLAKE2b-256 checksum
How to use checksums
cd04dd7a1cb54b6dc137ffcca31d02605cc1f6466bd0375709134aa314f4e813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / multi_lingual_storytelling_dall_e-0.0.1-py3-none-any.whl

Download URL multi_lingual_storytelling_dall_e-0.0.1-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0be94a9a0dba939113f282419b4b1fb456e9594d7eddccaa56c275bbaa1cb15
BLAKE2b-256 checksum
How to use checksums
6a3d892bd1d9ab543eb8b2189b6b43c5e4f19bdd163f0042920ac3cc2a31a6a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page