Spaces:
Runtime error
Runtime error
File size: 490 Bytes
d586109 1040835 6fd3027 1040835 6fd3027 d586109 1040835 6fd3027 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
def greet(name: str) -> str:
return f"👋 Hello, {name}! Welcome to Likhon's AI Interpreter Space."
demo = gr.Interface(
fn=greet,
inputs=gr.Textbox(lines=1, placeholder="Enter your name", label="Name"),
outputs=gr.Textbox(label="Greeting"),
title="💡 Likhon's AI Tool",
description="A simple greeting tool using Gradio in Dockerized Hugging Face Space."
)
if __name__ == "__main__":
demo.launch(server_name="0.0.0.0", server_port=7860) |