Spaces:
Sleeping
Sleeping
| # AI-Assisted Code, Academic Integrity Notice | |
| # Generated with The HF Companion. ESCP coursework. | |
| # Student must be able to explain all code when asked. | |
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# Simple test app - HF fix") | |
| txt = gr.Textbox(label="Say something") | |
| out = gr.Textbox(label="Output") | |
| def echo(x): | |
| return x | |
| txt.submit(echo, inputs=txt, outputs=out) | |
| if __name__ == "__main__": | |
| demo.launch(server_name="0.0.0.0", server_port=7860) | |