Gohil001 commited on
Commit
6398fd7
·
verified ·
1 Parent(s): 68c56d1

Demo: Gradio app implementation

Browse files

"This is a demo implementation of a Python app using Gradio to build a basic user interface for a greeting function."

Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # एक सिंपल फंक्शन जो यूजर का नाम लेता है और ग्रीटिंग देता है।
4
+ def greet(name):
5
+ return f"Hello, {name}!"
6
+
7
+ # Gradio Interface बनाएं
8
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
9
+
10
+ # इंटरफ़ेस लॉन्च करें
11
+ iface.launch()