Spaces:
Running
Running
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."
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()
|