Sagar23p commited on
Commit
79036b4
1 Parent(s): cca16bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -29
app.py CHANGED
@@ -11,43 +11,48 @@ API_KEY = os.environ.get('HUGGINGFACE_API_KEY')
11
  headers = {"Authorization":"Bearer "+API_KEY}
12
 
13
  model_links ={
14
- "Mistral":base_url+"mistralai/Mistral-7B-Instruct-v0.2",
15
- "Gemma-7B":base_url+"google/gemma-7b-it",
16
- "Gemma-2B":base_url+"google/gemma-2b-it",
17
- "Zephyr-7B-β":base_url+"HuggingFaceH4/zephyr-7b-beta",
18
  # "Llama-2":"meta-llama/Llama-2-7b-chat-hf"
19
  }
20
 
21
  #Pull info about the model to display
22
  model_info ={
23
- "Mistral":
24
  {'description':"""The Mistral model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
25
  \nIt was created by the [**Mistral AI**](https://mistral.ai/news/announcing-mistral-7b/) team as has over **7 billion parameters.** \n""",
26
  'logo':'https://mistral.ai/images/logo_hubc88c4ece131b91c7cb753f40e9e1cc5_2589_256x0_resize_q97_h2_lanczos_3.webp'},
27
- "Gemma-7B":
28
- {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
29
- \nIt was created by the [**Google's AI Team**](https://blog.google/technology/developers/gemma-open-models/) team as has over **7 billion parameters.** \n""",
30
- 'logo':'https://pbs.twimg.com/media/GG3sJg7X0AEaNIq.jpg'},
31
- "Gemma-2B":
32
- {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
33
- \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""",
34
- 'logo':'https://pbs.twimg.com/media/GG3sJg7X0AEaNIq.jpg'},
35
- "Zephyr-7B":
36
- {'description':"""The Zephyr model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
37
- \nFrom Huggingface: \n\
38
- Zephyr is a series of language models that are trained to act as helpful assistants. \
39
- [Zephyr 7B Gemma](https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1)\
40
- is the third model in the series, and is a fine-tuned version of google/gemma-7b \
41
- that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO)\n""",
42
- 'logo':'https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1/resolve/main/thumbnail.png'},
43
- "Zephyr-7B-β":
44
- {'description':"""The Zephyr model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
45
- \nFrom Huggingface: \n\
46
- Zephyr is a series of language models that are trained to act as helpful assistants. \
47
- [Zephyr-7B-β](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta)\
48
- is the second model in the series, and is a fine-tuned version of mistralai/Mistral-7B-v0.1 \
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-alpha/resolve/main/thumbnail.png'},
 
 
 
 
 
51
 
52
  }
53
 
 
11
  headers = {"Authorization":"Bearer "+API_KEY}
12
 
13
  model_links ={
14
+ "Mistral-7B":base_url+"mistralai/Mistral-7B-Instruct-v0.2",
15
+ "Mistral-22B":base_url+"mistral-community/Mixtral-8x22B-v0.1",
16
+ # "Gemma-2B":base_url+"google/gemma-2b-it",
17
+ # "Zephyr-7B-β":base_url+"HuggingFaceH4/zephyr-7b-beta",
18
  # "Llama-2":"meta-llama/Llama-2-7b-chat-hf"
19
  }
20
 
21
  #Pull info about the model to display
22
  model_info ={
23
+ "Mistral-7B":
24
  {'description':"""The Mistral model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
25
  \nIt was created by the [**Mistral AI**](https://mistral.ai/news/announcing-mistral-7b/) team as has over **7 billion parameters.** \n""",
26
  'logo':'https://mistral.ai/images/logo_hubc88c4ece131b91c7cb753f40e9e1cc5_2589_256x0_resize_q97_h2_lanczos_3.webp'},
27
+ "Mistral-22B":
28
+ {'description':"""The Mistral model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
29
+ \nIt was created by the [**Mistral AI**](https://mistral.ai/news/announcing-mistral-22b/) team as has over **22 billion parameters.** \n""",
30
+ 'logo':'https://mistral.ai/images/logo_hubc88c4ece131b91c7cb753f40e9e1cc5_2589_256x0_resize_q97_h2_lanczos_3.webp'}
31
+
32
+ # "Gemma-7B":
33
+ # {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
34
+ # \nIt was created by the [**Google's AI Team**](https://blog.google/technology/developers/gemma-open-models/) team as has over **7 billion parameters.** \n""",
35
+ # 'logo':'https://pbs.twimg.com/media/GG3sJg7X0AEaNIq.jpg'},
36
+ # "Gemma-2B":
37
+ # {'description':"""The Gemma model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
38
+ # \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""",
39
+ # 'logo':'https://pbs.twimg.com/media/GG3sJg7X0AEaNIq.jpg'},
40
+ # "Zephyr-7B":
41
+ # {'description':"""The Zephyr model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
42
+ # \nFrom Huggingface: \n\
43
+ # Zephyr is a series of language models that are trained to act as helpful assistants. \
44
+ # [Zephyr 7B Gemma](https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1)\
45
+ # is the third model in the series, and is a fine-tuned version of google/gemma-7b \
46
+ # that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO)\n""",
47
+ # 'logo':'https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-v0.1/resolve/main/thumbnail.png'},
48
+ # "Zephyr-7B-β":
49
+ # {'description':"""The Zephyr model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \
50
+ # \nFrom Huggingface: \n\
51
+ # Zephyr is a series of language models that are trained to act as helpful assistants. \
52
+ # [Zephyr-7B-β](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta)\
53
+ # is the second model in the series, and is a fine-tuned version of mistralai/Mistral-7B-v0.1 \
54
+ # that was trained on on a mix of publicly available, synthetic datasets using Direct Preference Optimization (DPO)\n""",
55
+ # 'logo':'https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha/resolve/main/thumbnail.png'},
56
 
57
  }
58