File size: 393 Bytes
6398fd7
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr

# एक सिंपल फंक्शन जो यूजर का नाम लेता है और ग्रीटिंग देता है।
def greet(name):
    return f"Hello, {name}!"

# Gradio Interface बनाएं
iface = gr.Interface(fn=greet, inputs="text", outputs="text")

# इंटरफ़ेस लॉन्च करें
iface.launch()