Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import time
|
|
4 |
import random
|
5 |
|
6 |
# Load the model and tokenizer for GGUF
|
7 |
-
model_id = "
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_id)
|
10 |
|
@@ -78,10 +78,10 @@ iface = gr.Interface(
|
|
78 |
gr.Slider(label="Max length", minimum=10, maximum=1000, step=10, value=250),
|
79 |
],
|
80 |
outputs=[
|
81 |
-
gr.TextArea(label="
|
82 |
gr.Label(label="Text Analysis", elem_id="analysis"),
|
83 |
],
|
84 |
-
title="Chat with
|
85 |
description="Engage in a conversation with our advanced model. Customize the response using various parameters.",
|
86 |
theme="default", # Use a custom theme to override the default Gradio styling
|
87 |
css=css, # Apply the CSS styles defined earlier
|
|
|
4 |
import random
|
5 |
|
6 |
# Load the model and tokenizer for GGUF
|
7 |
+
model_id = "nvidia/Llama3-ChatQA-1.5-8B"
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_id)
|
10 |
|
|
|
78 |
gr.Slider(label="Max length", minimum=10, maximum=1000, step=10, value=250),
|
79 |
],
|
80 |
outputs=[
|
81 |
+
gr.TextArea(label="Response:", lines=10),
|
82 |
gr.Label(label="Text Analysis", elem_id="analysis"),
|
83 |
],
|
84 |
+
title="Chat with Hajax",
|
85 |
description="Engage in a conversation with our advanced model. Customize the response using various parameters.",
|
86 |
theme="default", # Use a custom theme to override the default Gradio styling
|
87 |
css=css, # Apply the CSS styles defined earlier
|