akhaliq HF staff commited on
Commit
657131e
·
1 Parent(s): 365dcbb
Files changed (2) hide show
  1. README.md +1 -1
  2. app_transformers.py +11 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🏢
4
  colorFrom: indigo
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 5.11.0
8
  app_file: app.py
9
  pinned: false
10
  disable_embedding: true
 
4
  colorFrom: indigo
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: 5.10.0
8
  app_file: app.py
9
  pinned: false
10
  disable_embedding: true
app_transformers.py CHANGED
@@ -1,10 +1,18 @@
1
  import gradio as gr
2
- import ai_gradio
3
 
4
  demo = gr.load(
5
- name='transformers:phi-4',
6
- src=ai_gradio.registry
7
  )
8
 
 
 
 
 
 
9
  if __name__ == "__main__":
10
  demo.launch()
 
 
 
 
 
1
  import gradio as gr
 
2
 
3
  demo = gr.load(
4
+ name='akhaliq/phi-4',
5
+ src="spaces"
6
  )
7
 
8
+ # Disable API access for all functions
9
+ if hasattr(demo, "fns"):
10
+ for fn in demo.fns.values():
11
+ fn.api_name = False
12
+
13
  if __name__ == "__main__":
14
  demo.launch()
15
+
16
+
17
+
18
+