migueldeguzmandev commited on
Commit
44d4508
1 Parent(s): c919b63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForCausalLM
3
 
4
  # Load the model and tokenizer
5
- model_name = "migueldeguzmandev/migueldeguzmandev-RLLMv3.2-10"
6
  tokenizer = AutoTokenizer.from_pretrained(model_name)
7
  model = AutoModelForCausalLM.from_pretrained(model_name)
8
 
@@ -35,11 +35,14 @@ interface = gr.Interface(
35
  fn=generate_response,
36
  inputs=[
37
  gr.Textbox(label="User Input"),
38
- gr.Slider(minimum=0.1, maximum=1.0, value=0.0000000000000000000000000000001, step=0.1, label="Temperature"),
39
  ],
40
  outputs=gr.Textbox(label="Model Response"),
41
  title="Conversation with migueldeguzmandev-RLLMv3.2-10",
42
- description="Enter your message and adjust the temperature, then the model will generate a response.",
 
 
 
43
  )
44
 
45
  # Launch the interface with the share option set to True
 
2
  from transformers import AutoTokenizer, AutoModelForCausalLM
3
 
4
  # Load the model and tokenizer
5
+ model_name = "migueldeguzmandev/RLLMv3.2-10"
6
  tokenizer = AutoTokenizer.from_pretrained(model_name)
7
  model = AutoModelForCausalLM.from_pretrained(model_name)
8
 
 
35
  fn=generate_response,
36
  inputs=[
37
  gr.Textbox(label="User Input"),
38
+ gr.Slider(minimum=0.0, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
39
  ],
40
  outputs=gr.Textbox(label="Model Response"),
41
  title="Conversation with migueldeguzmandev-RLLMv3.2-10",
42
+ description=(
43
+ "Please set your desired temperature, then the model will generate a response. "
44
+ "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>."
45
+ ),
46
  )
47
 
48
  # Launch the interface with the share option set to True