akhaliq HF staff commited on
Commit
5ea344f
1 Parent(s): 12afc5d

add allen and update gemini default

Browse files
Files changed (3) hide show
  1. app.py +3 -0
  2. app_allenai.py +9 -0
  3. app_gemini.py +1 -1
app.py CHANGED
@@ -17,10 +17,13 @@ from app_xai import demo as demo_grok
17
  from app_flux import demo as demo_flux
18
  from app_ltx_video import demo as demo_ltx_video
19
  from app_experimental import demo as demo_experimental
 
20
 
21
  with gr.Blocks(fill_height=True) as demo:
22
  with gr.Tab("Experimental"):
23
  demo_experimental.render()
 
 
24
  with gr.Tab("Meta Llama"):
25
  demo_sambanova.render()
26
  gr.Markdown(
 
17
  from app_flux import demo as demo_flux
18
  from app_ltx_video import demo as demo_ltx_video
19
  from app_experimental import demo as demo_experimental
20
+ from app_allenai import demo as demo_allenai
21
 
22
  with gr.Blocks(fill_height=True) as demo:
23
  with gr.Tab("Experimental"):
24
  demo_experimental.render()
25
+ with gr.Tab("AllenAI"):
26
+ demo_allenai.render()
27
  with gr.Tab("Meta Llama"):
28
  demo_sambanova.render()
29
  gr.Markdown(
app_allenai.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+ import transformers_gradio
4
+
5
+ demo = gr.load(name="allenai/Llama-3.1-Tulu-3-8B", src=transformers_gradio.registry)
6
+ demo.fn = spaces.GPU()(demo.fn)
7
+
8
+ if __name__ == "__main__":
9
+ demo.launch()
app_gemini.py CHANGED
@@ -12,7 +12,7 @@ demo = get_app(
12
  "gemini-exp-1114",
13
  "gemini-exp-1121"
14
  ],
15
- default_model="gemini-1.5-pro",
16
  src=gemini_gradio.registry,
17
  accept_token=not os.getenv("GEMINI_API_KEY"),
18
  )
 
12
  "gemini-exp-1114",
13
  "gemini-exp-1121"
14
  ],
15
+ default_model="gemini-1.5-flash",
16
  src=gemini_gradio.registry,
17
  accept_token=not os.getenv("GEMINI_API_KEY"),
18
  )