KyleIsaacs commited on
Commit
5b2043b
·
1 Parent(s): 17fba42
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
 
3
 
4
  client = InferenceClient(
5
  "mistralai/Mistral-7B-Instruct-v0.1"
6
  )
7
 
8
-
9
  def format_prompt(message, history):
10
  prompt = "<s>"
11
  for user_prompt, bot_response in history:
@@ -90,7 +90,7 @@ css = """
90
  """
91
 
92
  with gr.Blocks(css=css) as demo:
93
- gr.HTML("<h1><center>Mistral 7B Instruct<h1><center>")
94
  gr.HTML("<h3><center>In this demo, you can chat with <a href='https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1'>Mistral-7B-Instruct</a> model. 💬<h3><center>")
95
  gr.HTML("<h3><center>Learn more about the model <a href='https://huggingface.co/docs/transformers/main/model_doc/mistral'>here</a>. 📚<h3><center>")
96
  gr.ChatInterface(
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
+ import os
4
 
5
  client = InferenceClient(
6
  "mistralai/Mistral-7B-Instruct-v0.1"
7
  )
8
 
 
9
  def format_prompt(message, history):
10
  prompt = "<s>"
11
  for user_prompt, bot_response in history:
 
90
  """
91
 
92
  with gr.Blocks(css=css) as demo:
93
+ gr.HTML("<h1><center>Kyle Space<h1><center>")
94
  gr.HTML("<h3><center>In this demo, you can chat with <a href='https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1'>Mistral-7B-Instruct</a> model. 💬<h3><center>")
95
  gr.HTML("<h3><center>Learn more about the model <a href='https://huggingface.co/docs/transformers/main/model_doc/mistral'>here</a>. 📚<h3><center>")
96
  gr.ChatInterface(