theostos commited on
Commit
2f025da
1 Parent(s): 11b886d

add instruction and titles

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -28,7 +28,6 @@ def respond(
28
  max_tokens,
29
  temperature,
30
  ):
31
-
32
  prompt = f"""<|start_header_id|>system<|end_header_id|>
33
 
34
  You are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>
@@ -54,10 +53,12 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
54
  """
55
  demo = gr.ChatInterface(
56
  respond,
 
 
57
  additional_inputs=[
58
  gr.Slider(minimum=1, maximum=128, value=32, step=1, label="Max new tokens"),
59
  gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
60
- ],
61
  )
62
 
63
 
 
28
  max_tokens,
29
  temperature,
30
  ):
 
31
  prompt = f"""<|start_header_id|>system<|end_header_id|>
32
 
33
  You are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>
 
53
  """
54
  demo = gr.ChatInterface(
55
  respond,
56
+ title="zLlamask",
57
+ description="Please enter your message. Add privacy tags ( \<sensitive\>...\<\/sensitive\>) around the words you want to hide. Only the most recent message submitted will be taken into account (no history is retained)",
58
  additional_inputs=[
59
  gr.Slider(minimum=1, maximum=128, value=32, step=1, label="Max new tokens"),
60
  gr.Slider(minimum=0.1, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
61
+ ]
62
  )
63
 
64