Spaces:
No application file
No application file
Add application file
#1
by stephenb1334 - opened
- app.py +15 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def greet(name):
|
| 5 |
+
return "Hello " + name + "!!"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
demo = gr.Interface(
|
| 9 |
+
fn=greet,
|
| 10 |
+
inputs=gr.Textbox(label="Name", placeholder="Enter your name"),
|
| 11 |
+
outputs=gr.Textbox(label="Greeting"),
|
| 12 |
+
title="Inme",
|
| 13 |
+
description="Type your name and get a greeting.",
|
| 14 |
+
)
|
| 15 |
+
demo.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio==3.27.0
|