Spaces:
Sleeping
Sleeping
File size: 546 Bytes
b6bbe57 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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) |