Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ def generate_response(input_text, temperature):
|
|
28 |
|
29 |
# Decode the generated response
|
30 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
31 |
-
|
32 |
return response
|
33 |
|
34 |
# Create the Gradio interface
|
@@ -41,10 +40,12 @@ interface = gr.Interface(
|
|
41 |
outputs=gr.Textbox(label="Model Response"),
|
42 |
title="Test RLLMv3.2-10!",
|
43 |
description=(
|
44 |
-
"
|
45 |
-
|
|
|
|
|
46 |
),
|
47 |
)
|
48 |
|
49 |
-
# Launch the interface
|
50 |
-
interface.launch(
|
|
|
28 |
|
29 |
# Decode the generated response
|
30 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
|
|
31 |
return response
|
32 |
|
33 |
# Create the Gradio interface
|
|
|
40 |
outputs=gr.Textbox(label="Model Response"),
|
41 |
title="Test RLLMv3.2-10!",
|
42 |
description=(
|
43 |
+
"""
|
44 |
+
Please set your desired temperature, then the model will generate a response.
|
45 |
+
This language model was able to defend itself from jailbreak attacks, up to 67.8%. For more information, check out the <a href='https://www.lesswrong.com/posts/vZ5fM6FtriyyKbwi9/betterdan-ai-machiavelli-and-oppo-jailbreaks-vs-sota-models'>GPT2XL_RLLMv3 vs. BetterDAN, AI Machiavelli & Oppo Jailbreaks</a>.
|
46 |
+
"""
|
47 |
),
|
48 |
)
|
49 |
|
50 |
+
# Launch the interface without the share option
|
51 |
+
interface.launch()
|