Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,38 @@
|
|
1 |
import gradio as gr
|
2 |
import sambanova_gradio
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
with gr.Tab("1B"):
|
6 |
-
gr.load("Meta-Llama-3.2-1B-Instruct",
|
|
|
|
|
|
|
7 |
with gr.Tab("3B"):
|
8 |
-
gr.load("Meta-Llama-3.2-3B-Instruct",
|
|
|
|
|
|
|
9 |
with gr.Tab("8B"):
|
10 |
-
gr.load("Meta-Llama-3.1-8B-Instruct",
|
|
|
|
|
|
|
11 |
with gr.Tab("70B"):
|
12 |
-
gr.load('Meta-Llama-3.1-70B-Instruct-8k',
|
|
|
|
|
|
|
13 |
with gr.Tab("405B"):
|
14 |
-
gr.load('Meta-Llama-3.1-405B-Instruct',
|
|
|
|
|
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()
|