Spaces:
Sleeping
Sleeping
import gradio as gr | |
def simple_function(text): | |
return f"You entered: {text}" | |
# Create a minimal Gradio app | |
with gr.Blocks() as app: | |
gr.Markdown("# Minimal Test App") | |
with gr.Row(): | |
input_text = gr.Textbox(label="Enter text") | |
output_text = gr.Textbox(label="Output") | |
submit_btn = gr.Button("Submit") | |
submit_btn.click( | |
fn=simple_function, | |
inputs=[input_text], | |
outputs=[output_text] | |
) | |
if __name__ == "__main__": | |
app.launch(server_name="0.0.0.0", server_port=7861) |