vericudebuget commited on
Commit
755b97f
·
verified ·
1 Parent(s): 7a7900f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -6,6 +6,7 @@ gr.Interface.load_theme(gr.themes.Soft())
6
  # Initialize the InferenceClient
7
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
8
 
 
9
  # This code was mostly written by vericudebuget and gpt-4
10
 
11
  def format_prompt(message, history):
@@ -53,12 +54,12 @@ additional_inputs = [
53
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
54
  ]
55
 
56
- gr.ChatInterface(
57
  fn=generate,
58
  chatbot=gr.Chatbot(show_label=True, show_share_button=True, show_copy_button=True, likeable=True, layout="panel"),
59
  additional_inputs=additional_inputs,
60
  title="ConvoLite",
61
- description= "Remember! The AI might give incorect information or facts. We are not responsible for you actions!",
62
  concurrency_limit=20,
63
-
64
- ).launch(show_api=False,)
 
6
  # Initialize the InferenceClient
7
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
8
 
9
+ # The base of this project is made by ehristoforu
10
  # This code was mostly written by vericudebuget and gpt-4
11
 
12
  def format_prompt(message, history):
 
54
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
55
  ]
56
 
57
+ gr.Interface(
58
  fn=generate,
59
  chatbot=gr.Chatbot(show_label=True, show_share_button=True, show_copy_button=True, likeable=True, layout="panel"),
60
  additional_inputs=additional_inputs,
61
  title="ConvoLite",
62
+ description="Remember! The AI might give incorrect information about people, locations, history, etc...",
63
  concurrency_limit=20,
64
+ theme=gr.themes.Soft() # Set the theme here
65
+ ).launch(show_api=False,)