Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
return "Hello
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def hello(name: str) -> str:
|
| 4 |
+
return f"Hello, {name}! ✅ Space is live."
|
| 5 |
|
| 6 |
+
# IMPORTANT: don't call launch(); Spaces serve the `app` object
|
| 7 |
+
app = gr.Interface(
|
| 8 |
+
fn=hello,
|
| 9 |
+
inputs=gr.Textbox(label="Your name"),
|
| 10 |
+
outputs=gr.Textbox(label="Response"),
|
| 11 |
+
title="HoloCine UI (Minimal)",
|
| 12 |
+
description="Minimal Gradio app for HF Spaces (no launch())."
|
| 13 |
+
)
|