Spaces:
Sleeping
Sleeping
Madhuslista
commited on
Commit
·
2458f16
1
Parent(s):
44c49b5
Feature: Hello World
Browse files
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
|
4 |
+
import gradio as gr
|
5 |
+
|
6 |
+
# -->> Tunables <<---------------------
|
7 |
+
|
8 |
+
|
9 |
+
# -->> Definitions <<------------------
|
10 |
+
|
11 |
+
def greet(name):
|
12 |
+
return "Hello " + name + "!"
|
13 |
+
|
14 |
+
# -->> API <<--------------------------
|
15 |
+
|
16 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
17 |
+
iface.launch()
|
18 |
+
|
19 |
+
# -->> Execute <<----------------------
|
20 |
+
|
21 |
+
|
22 |
+
# -->> Export <<-----------------------
|