Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
model = gr.load(
|
5 |
+
"models/meta-llama/Llama-3.3-70B-Instruct",
|
6 |
+
provider="sambanova",
|
7 |
+
)
|
8 |
+
|
9 |
+
|
10 |
+
demo = gr.Interface(
|
11 |
+
fn=model,
|
12 |
+
inputs=gr.Textbox(label="Input Text"),
|
13 |
+
outputs=gr.Textbox(label="Output Text"),
|
14 |
+
title="Llama-3.3-70B-Instruct Model",
|
15 |
+
description="A language model that generates human-like text based on input prompts.",
|
16 |
+
)
|
17 |
+
|
18 |
+
|
19 |
+
demo.launch()
|