Spaces:
Sleeping
Sleeping
Rename app.py to Gradio
Browse files- app.py → Gradio +7 -0
app.py → Gradio
RENAMED
|
@@ -5,6 +5,13 @@ import matplotlib.pyplot as plt
|
|
| 5 |
import gradio as gr
|
| 6 |
import io
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
print("Starting app...")
|
| 9 |
|
| 10 |
try:
|
|
|
|
| 5 |
import gradio as gr
|
| 6 |
import io
|
| 7 |
|
| 8 |
+
def test_function(name):
|
| 9 |
+
return f"Hello, {name}!"
|
| 10 |
+
|
| 11 |
+
app = gr.Interface(fn=test_function, inputs="text", outputs="text")
|
| 12 |
+
app.launch()
|
| 13 |
+
|
| 14 |
+
|
| 15 |
print("Starting app...")
|
| 16 |
|
| 17 |
try:
|