musev-demo / app.py
jmanhype
Create absolute minimal setup with debugging
aa33637
raw
history blame contribute delete
436 Bytes
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)