akhaliq HF staff commited on
Commit
723d7fe
·
1 Parent(s): 43e0d33
Files changed (3) hide show
  1. app.py +3 -1
  2. app_transformers.py +10 -0
  3. requirements.txt +1 -1
app.py CHANGED
@@ -32,10 +32,12 @@ from app_smolagents import demo as demo_smolagents
32
  from app_groq import demo as demo_groq
33
  from app_groq_coder import demo as demo_groq_coder
34
  from app_openai_coder import demo as demo_openai_coder
 
35
  from utils import get_app
36
 
37
  # Create mapping of providers to their demos
38
  PROVIDERS = {
 
39
  "OpenAI Coder": demo_openai_coder,
40
  "Gemini Coder": demo_gemini_coder,
41
  "OpenAI": demo_openai,
@@ -72,7 +74,7 @@ PROVIDERS = {
72
  "NVIDIA": demo_nvidia,
73
  }
74
 
75
- demo = get_app(models=list(PROVIDERS.keys()), default_model="OpenAI Coder", src=PROVIDERS, dropdown_label="Select Provider")
76
 
77
  if __name__ == "__main__":
78
  demo.queue(api_open=False).launch(show_api=False)
 
32
  from app_groq import demo as demo_groq
33
  from app_groq_coder import demo as demo_groq_coder
34
  from app_openai_coder import demo as demo_openai_coder
35
+ from app_transformers import demo as demo_transformers
36
  from utils import get_app
37
 
38
  # Create mapping of providers to their demos
39
  PROVIDERS = {
40
+ "Phi-4": demo_transformers,
41
  "OpenAI Coder": demo_openai_coder,
42
  "Gemini Coder": demo_gemini_coder,
43
  "OpenAI": demo_openai,
 
74
  "NVIDIA": demo_nvidia,
75
  }
76
 
77
+ demo = get_app(models=list(PROVIDERS.keys()), default_model="Phi-4", src=PROVIDERS, dropdown_label="Select Provider")
78
 
79
  if __name__ == "__main__":
80
  demo.queue(api_open=False).launch(show_api=False)
app_transformers.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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()
requirements.txt CHANGED
@@ -496,4 +496,4 @@ crewai-tools==0.17.0
496
  langchain>=0.3.1,<0.4.0
497
  chromadb>=0.5.18
498
  openai==1.58.1
499
- ai-gradio[deepseek,crewai,hyperbolic,openai,gemini,smolagents,groq]==0.2.7
 
496
  langchain>=0.3.1,<0.4.0
497
  chromadb>=0.5.18
498
  openai==1.58.1
499
+ ai-gradio[deepseek,crewai,hyperbolic,openai,gemini,smolagents,groq,transformers]==0.2.8