ngebodh commited on
Commit
e8f079f
1 Parent(s): 4e483df
Files changed (1) hide show
  1. app.py +22 -6
app.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  import streamlit as st
2
  from openai import OpenAI
3
  import os
@@ -9,7 +15,7 @@ load_dotenv()
9
 
10
 
11
 
12
- # initialize the client but point it to TGI
13
  client = OpenAI(
14
  base_url="https://api-inference.huggingface.co/v1",
15
  api_key=os.environ.get('HUGGINGFACEHUB_API_TOKEN')#"hf_xxx" # Replace with your token
@@ -23,7 +29,7 @@ model_links ={
23
  "Mistral":"mistralai/Mistral-7B-Instruct-v0.2",
24
  "Gemma-7B":"google/gemma-7b-it",
25
  "Gemma-2B":"google/gemma-2b-it",
26
- # "Gemma-Zephyr":"HuggingFaceH4/zephyr-7b-gemma-v0.1",
27
  # "Llama-2":"meta-llama/Llama-2-7b-chat-hf"
28
 
29
  }
@@ -42,12 +48,22 @@ model_info ={
42
  {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
43
  \nIt was created by the [**Google's AI Team**](https://blog.google/technology/developers/gemma-open-models/) team as has over **2 billion parameters.** \n""",
44
  'logo':'https://pbs.twimg.com/media/GG3sJg7X0AEaNIq.jpg'},
45
- "Gemma-Zephyr":
46
- {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
47
- \nFrom Huggingface: Zephyr is a series of language models that are trained to act as helpful assistants. \
48
- Zephyr 7B Gemma is the third model in the series, and is a fine-tuned version of google/gemma-7b \
 
 
49
  that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO)\n""",
50
  'logo':'https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1/resolve/main/thumbnail.png'},
 
 
 
 
 
 
 
 
51
 
52
  }
53
 
 
1
+ """ Simple Chatbot
2
+ @author: Nigel Gebodh
3
+ @email: nigel.gebodh@gmail.com
4
+
5
+ """
6
+
7
  import streamlit as st
8
  from openai import OpenAI
9
  import os
 
15
 
16
 
17
 
18
+ # initialize the client
19
  client = OpenAI(
20
  base_url="https://api-inference.huggingface.co/v1",
21
  api_key=os.environ.get('HUGGINGFACEHUB_API_TOKEN')#"hf_xxx" # Replace with your token
 
29
  "Mistral":"mistralai/Mistral-7B-Instruct-v0.2",
30
  "Gemma-7B":"google/gemma-7b-it",
31
  "Gemma-2B":"google/gemma-2b-it",
32
+ "Zephyr-7B-β":"HuggingFaceH4/zephyr-7b-beta",
33
  # "Llama-2":"meta-llama/Llama-2-7b-chat-hf"
34
 
35
  }
 
48
  {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
49
  \nIt was created by the [**Google's AI Team**](https://blog.google/technology/developers/gemma-open-models/) team as has over **2 billion parameters.** \n""",
50
  'logo':'https://pbs.twimg.com/media/GG3sJg7X0AEaNIq.jpg'},
51
+ "Zephyr-7B":
52
+ {'description':"""The Zephyr model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
53
+ \nFrom Huggingface: \n\
54
+ Zephyr is a series of language models that are trained to act as helpful assistants. \
55
+ [Zephyr 7B Gemma](https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1)\
56
+ is the third model in the series, and is a fine-tuned version of google/gemma-7b \
57
  that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO)\n""",
58
  'logo':'https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1/resolve/main/thumbnail.png'},
59
+ "Zephyr-7B-β":
60
+ {'description':"""The Zephyr model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
61
+ \nFrom Huggingface: \n\
62
+ Zephyr is a series of language models that are trained to act as helpful assistants. \
63
+ [Zephyr-7B-β](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta)\
64
+ is the second model in the series, and is a fine-tuned version of mistralai/Mistral-7B-v0.1 \
65
+ that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO)\n""",
66
+ 'logo':'https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha/resolve/main/thumbnail.png'},
67
 
68
  }
69