legacymiles commited on
Commit
f6b1121
·
verified ·
1 Parent(s): ab89005

update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,7 +1,13 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- demo.launch()
 
 
 
 
 
 
 
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
+ )