File size: 436 Bytes
aa33637
 
3b2db4a
aa33637
9bb0e80
aa33637
 
 
c8e57a9
aa33637
3b2db4a
aa33637
 
60fb7c5
aa33637
3b2db4a
c8e57a9
 
aa33637
3b2db4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
print("Starting app.py...")

import gradio as gr
print("Successfully imported gradio")

def hello(name):
    print(f"Received request with name: {name}")
    return f"Hello {name}!"

print("Creating Gradio interface...")
demo = gr.Interface(
    fn=hello,
    inputs="text",
    outputs="text",
    title="Basic Test"
)

if __name__ == "__main__":
    print("Launching demo...")
    demo.launch(server_name="0.0.0.0", server_port=7860)