prithivMLmods commited on
Commit
f09a1d9
·
verified ·
1 Parent(s): 4bbd98e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -6
app.py CHANGED
@@ -1,16 +1,38 @@
1
  import gradio as gr
2
  import sambanova_gradio
3
 
4
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
5
  with gr.Tab("1B"):
6
- gr.load("Meta-Llama-3.2-1B-Instruct", src=sambanova_gradio.registry)
 
 
 
7
  with gr.Tab("3B"):
8
- gr.load("Meta-Llama-3.2-3B-Instruct", src=sambanova_gradio.registry)
 
 
 
9
  with gr.Tab("8B"):
10
- gr.load("Meta-Llama-3.1-8B-Instruct", src=sambanova_gradio.registry)
 
 
 
11
  with gr.Tab("70B"):
12
- gr.load('Meta-Llama-3.1-70B-Instruct-8k', src=sambanova_gradio.registry)
 
 
 
13
  with gr.Tab("405B"):
14
- gr.load('Meta-Llama-3.1-405B-Instruct', src=sambanova_gradio.registry)
 
 
15
 
16
  demo.launch()
 
1
  import gradio as gr
2
  import sambanova_gradio
3
 
4
+ css = '''
5
+ .gradio-container{max-width: 888px !important}
6
+ h1{text-align:center}
7
+ footer {
8
+ visibility: hidden
9
+ }
10
+ '''
11
+
12
+ with gr.Blocks(css=css, theme="") as demo:
13
  with gr.Tab("1B"):
14
+ gr.load("Meta-Llama-3.2-1B-Instruct",
15
+ src=sambanova_gradio.registry,
16
+ examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
17
+
18
  with gr.Tab("3B"):
19
+ gr.load("Meta-Llama-3.2-3B-Instruct",
20
+ src=sambanova_gradio.registry,
21
+ examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
22
+
23
  with gr.Tab("8B"):
24
+ gr.load("Meta-Llama-3.1-8B-Instruct",
25
+ src=sambanova_gradio.registry,
26
+ examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
27
+
28
  with gr.Tab("70B"):
29
+ gr.load('Meta-Llama-3.1-70B-Instruct-8k',
30
+ src=sambanova_gradio.registry,
31
+ examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
32
+
33
  with gr.Tab("405B"):
34
+ gr.load('Meta-Llama-3.1-405B-Instruct',
35
+ src=sambanova_gradio.registry,
36
+ examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
37
 
38
  demo.launch()