Spaces:
Runtime error
Runtime error
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) |