Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the model
|
5 |
-
model = pipeline("text-generation", model="
|
6 |
|
7 |
def generate_text(prompt, max_length=100, temperature=0.7):
|
8 |
"""Generate text based on the input prompt."""
|
@@ -18,8 +18,8 @@ iface = gr.Interface(
|
|
18 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature")
|
19 |
],
|
20 |
outputs=gr.Textbox(label="Generated Text"),
|
21 |
-
title="
|
22 |
-
description="
|
23 |
)
|
24 |
|
25 |
# Launch the app
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the model
|
5 |
+
model = pipeline("text-generation", model="Orenguteng/Llama-3.1-8B-Lexi-Uncensored")
|
6 |
|
7 |
def generate_text(prompt, max_length=100, temperature=0.7):
|
8 |
"""Generate text based on the input prompt."""
|
|
|
18 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature")
|
19 |
],
|
20 |
outputs=gr.Textbox(label="Generated Text"),
|
21 |
+
title="Uncensored Llama Chat",
|
22 |
+
description="Uncensored Llama 3.1 8B."
|
23 |
)
|
24 |
|
25 |
# Launch the app
|