Spaces:
Sleeping
Sleeping
File size: 543 Bytes
d6b0085 a732e46 d6b0085 7b0f049 a732e46 7b0f049 d6b0085 a732e46 d6b0085 7b0f049 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import gradio as gr
import spaces
# Dummy function for ZeroGPU boot validation (keep it)
@spaces.GPU
def fix_startup_check():
"""Dummy function to pass HF ZeroGPU boot validation."""
return None
# Your actual app code
def say_hello(name: str) -> str:
return f"Hello {name}!"
demo = gr.Interface(
fn=say_hello,
inputs="text",
outputs="text",
api_name="say_hello" # explicit endpoint name (optional)
)
# IMPORTANT: bind to 0.0.0.0 so zrok can forward traffic
demo.launch(server_name="0.0.0.0", server_port=7860) |