File size: 496 Bytes
4b865c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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)