Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
return f"¡Hola {name}! Welcome to Spanifyd."
|
| 5 |
+
|
| 6 |
+
gr.Interface(fn=greet,
|
| 7 |
+
inputs="text",
|
| 8 |
+
outputs="text",
|
| 9 |
+
title="👋 Spanifyd Demo Tool",
|
| 10 |
+
description="Type your name and get a friendly greeting!").launch()
|