from HelperFunctions import * import streamlit as st from PIL import Image import io def Generate_image(text): # Dummy implementation for illustration # Replace this with your actual image generation model embeddings = Tokenize(text) tensor = generate_images(embeddings) tensor = tensor.squeeze().permute(1, 2, 0) # img = Image.new('RGB', (200, 100), color = (73, 109, 137)) tensor = (tensor * 255).clamp(0, 255).byte() # Scale to [0, 255] and convert to byte array = tensor.cpu().numpy() # Convert to NumPy array return Image.fromarray(array) return img st.markdown( """ """, unsafe_allow_html=True, ) st.title("Pokémon Image Generator") st.markdown('