gokaygokay commited on
Commit
924ebe6
1 Parent(s): 6b59e6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -15,14 +15,18 @@ hf_hub_download(
15
  local_dir="./models"
16
  )
17
 
18
-
19
-
20
  hf_hub_download(
21
  repo_id="bartowski/gemma-2-27b-it-GGUF",
22
  filename="gemma-2-27b-it-Q5_K_M.gguf",
23
  local_dir="./models"
24
  )
25
 
 
 
 
 
 
 
26
 
27
  llm = None
28
  llm_model = None
@@ -98,12 +102,14 @@ def respond(
98
  outputs += output
99
  yield outputs
100
 
101
- description = """<p align="center">Defaults to 27B it (you can switch to 9b it from additional inputs)</p>
102
  <p><center>
103
  <a href="https://huggingface.co/google/gemma-2-27b-it" target="_blank">[27B it Model]</a>
104
  <a href="https://huggingface.co/google/gemma-2-9b-it" target="_blank">[9B it Model]</a>
 
105
  <a href="https://huggingface.co/bartowski/gemma-2-27b-it-GGUF" target="_blank">[27B it Model GGUF]</a>
106
  <a href="https://huggingface.co/bartowski/gemma-2-9b-it-GGUF" target="_blank">[9B it Model GGUF]</a>
 
107
  </center></p>
108
  """
109
 
@@ -112,7 +118,8 @@ demo = gr.ChatInterface(
112
  additional_inputs=[
113
  gr.Dropdown([
114
  'gemma-2-9b-it-Q5_K_M.gguf',
115
- 'gemma-2-27b-it-Q5_K_M.gguf'
 
116
  ],
117
  value="gemma-2-27b-it-Q5_K_M.gguf",
118
  label="Model"
 
15
  local_dir="./models"
16
  )
17
 
 
 
18
  hf_hub_download(
19
  repo_id="bartowski/gemma-2-27b-it-GGUF",
20
  filename="gemma-2-27b-it-Q5_K_M.gguf",
21
  local_dir="./models"
22
  )
23
 
24
+ hf_hub_download(
25
+ repo_id="google/gemma-2-2b-it-GGUF",
26
+ filename="2b_it_v2.gguf",
27
+ local_dir="./models"
28
+ )
29
+
30
 
31
  llm = None
32
  llm_model = None
 
102
  outputs += output
103
  yield outputs
104
 
105
+ description = """<p align="center">Defaults to 27B (you can switch to 9B or 2B from additional inputs)</p>
106
  <p><center>
107
  <a href="https://huggingface.co/google/gemma-2-27b-it" target="_blank">[27B it Model]</a>
108
  <a href="https://huggingface.co/google/gemma-2-9b-it" target="_blank">[9B it Model]</a>
109
+ <a href="https://huggingface.co/google/gemma-2-2b-it" target="_blank">[2B it Model]</a>
110
  <a href="https://huggingface.co/bartowski/gemma-2-27b-it-GGUF" target="_blank">[27B it Model GGUF]</a>
111
  <a href="https://huggingface.co/bartowski/gemma-2-9b-it-GGUF" target="_blank">[9B it Model GGUF]</a>
112
+ <a href="https://huggingface.co/google/gemma-2-2b-it-GGUF" target="_blank">[2B it Model GGUF]</a>
113
  </center></p>
114
  """
115
 
 
118
  additional_inputs=[
119
  gr.Dropdown([
120
  'gemma-2-9b-it-Q5_K_M.gguf',
121
+ 'gemma-2-27b-it-Q5_K_M.gguf',
122
+ '2b_it_v2.gguf'
123
  ],
124
  value="gemma-2-27b-it-Q5_K_M.gguf",
125
  label="Model"