File size: 258 Bytes
723d7fe
 
 
657131e
 
723d7fe
 
657131e
 
 
 
 
723d7fe
 
657131e
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr

demo = gr.load(
    name='akhaliq/phi-4',
    src="spaces"
)

# Disable API access for all functions
if hasattr(demo, "fns"):
    for fn in demo.fns.values():
        fn.api_name = False

if __name__ == "__main__":
    demo.launch()