SpaceVector_v0 / text_to_image.py
LayBraid
:construction: add search button
26cbfcd
raw
history blame
352 Bytes
import streamlit as st
def get_image(text):
return "https://img.freepik.com/free-vector/illustration-space_29937-1093.jpg?w=2000"
def app():
st.title("Welcome to Space Vector")
st.text("You want search an image with given text.")
text = st.text_input("Enter text: ")
if st.button("Search"):
st.image(get_image(text))