import streamlit as st # Page Title st.title("Interactive Input Application") # Text Input Section st.header("Text Input") text = st.text_input("Enter some text:") if text: st.write(f"You entered: {text}") # Audio Recording Section st.header("Audio Input") audio_file = st.file_uploader("Upload an audio file (MP3, WAV, etc.):", type=["mp3", "wav"]) if audio_file: st.audio(audio_file, format="audio/mp3") # Slider Section st.header("Adjust the Slider") slider_value = st.slider("Choose a value:", min_value=0, max_value=100, value=50) st.write(f"Slider value: {slider_value}") # Image Upload Section st.header("Image Input") image_file = st.file_uploader("Upload an image:", type=["png", "jpg", "jpeg"]) if image_file: st.image(image_file, caption="Uploaded Image", use_column_width=True)