vericudebuget commited on
Commit
e834dae
1 Parent(s): 864bbb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
  import datetime
 
4
 
5
  # Initialize the InferenceClient
6
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
@@ -42,9 +43,11 @@ additional_inputs = [
42
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
43
  ]
44
 
 
 
45
  gr.ChatInterface(
46
  fn=generate,
47
- chatbot=gr.Chatbot(show_label=True, show_share_button=False, show_copy_button=True, likeable=True, layout="panel", height="auto", scroll_to_output="True", ),
48
  additional_inputs=additional_inputs,
49
  title="ConvoLite",
50
  submit_btn="➢",
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
  import datetime
4
+ from pathlib import Path
5
 
6
  # Initialize the InferenceClient
7
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
 
43
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
44
  ]
45
 
46
+ avatar_images = ("https://www.svgrepo.com/show/529279/user-circle.svg", "https://i.postimg.cc/qq04Yz93/CL3.png")
47
+
48
  gr.ChatInterface(
49
  fn=generate,
50
+ chatbot=gr.Chatbot(show_label=True, show_share_button=False, show_copy_button=True, likeable=True, layout="panel", height="auto", avatar_images=avatar_images),
51
  additional_inputs=additional_inputs,
52
  title="ConvoLite",
53
  submit_btn="➢",