Spaces:
Runtime error
Runtime error
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)) | |