prashanth970's picture
Create app.py
b9822f4 verified
raw
history blame contribute delete
706 Bytes
import streamlit as st
def main():
st.title("My Awesome Hugging Face Space")
st.write("Welcome to my repository. This is a simple Streamlit app deployed on Hugging Face Spaces.")
# Text input for user prompt
prompt = st.text_input("Enter your prompt for image generation:", "Type your prompt here...")
# Button to simulate image generation
if st.button("Generate"):
st.write("Generating output for:", prompt)
# Placeholder image URL (replace this with your image generation code)
placeholder_url = "https://via.placeholder.com/512"
st.image(placeholder_url, caption="Generated Image", use_column_width=True)
if __name__ == "__main__":
main()