willwade commited on
Commit
35169ba
·
1 Parent(s): c8d94c7

fix model names

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -7,8 +7,9 @@ from utils import SocialGraphManager, SuggestionGenerator
7
  # Define available models
8
  AVAILABLE_MODELS = {
9
  "google/gemma-3-1b-it": "Gemma 3 1B-IT (Small, instruction-tuned)",
10
- "google/gemma-3-2b-it": "Gemma 3 2B-IT (Default, instruction-tuned)",
11
- "google/gemma-3-4b-it": "Gemma 3 4B-IT (Better quality, instruction-tuned)",
 
12
  "Qwen/Qwen1.5-0.5B": "Qwen 1.5 0.5B (Very small, efficient)",
13
  "Qwen/Qwen1.5-1.8B": "Qwen 1.5 1.8B (Small, good quality)",
14
  "TinyLlama/TinyLlama-1.1B-Chat-v1.0": "TinyLlama 1.1B (Small, chat-tuned)",
@@ -21,8 +22,8 @@ AVAILABLE_MODELS = {
21
  # Initialize the social graph manager
22
  social_graph = SocialGraphManager("social_graph.json")
23
 
24
- # Initialize the suggestion generator with Gemma 3 2B (default)
25
- suggestion_generator = SuggestionGenerator("google/gemma-3-2b-it")
26
 
27
  # Test the model to make sure it's working
28
  test_result = suggestion_generator.test_model()
@@ -152,7 +153,7 @@ def generate_suggestions(
152
  user_input,
153
  suggestion_type,
154
  selected_topic=None,
155
- model_name="google/gemma-3-2b-it",
156
  temperature=0.7,
157
  mood=3,
158
  progress=gr.Progress(),
@@ -461,7 +462,7 @@ with gr.Blocks(title="Will's AAC Communication Aid", css="custom.css") as demo:
461
  with gr.Row():
462
  model_dropdown = gr.Dropdown(
463
  choices=list(AVAILABLE_MODELS.keys()),
464
- value="google/gemma-3-2b-it",
465
  label="Language Model",
466
  info="Select which AI model to use for generating responses",
467
  )
 
7
  # Define available models
8
  AVAILABLE_MODELS = {
9
  "google/gemma-3-1b-it": "Gemma 3 1B-IT (Small, instruction-tuned)",
10
+ "google/gemma-3-4b-it": "Gemma 3 4B-IT (Default, instruction-tuned)",
11
+ "google/gemma-3-12b-it": "Gemma 3 12B-IT (Better quality, instruction-tuned)",
12
+ "google/gemma-3-27b-it": "Gemma 3 27B-IT (Best quality, instruction-tuned)",
13
  "Qwen/Qwen1.5-0.5B": "Qwen 1.5 0.5B (Very small, efficient)",
14
  "Qwen/Qwen1.5-1.8B": "Qwen 1.5 1.8B (Small, good quality)",
15
  "TinyLlama/TinyLlama-1.1B-Chat-v1.0": "TinyLlama 1.1B (Small, chat-tuned)",
 
22
  # Initialize the social graph manager
23
  social_graph = SocialGraphManager("social_graph.json")
24
 
25
+ # Initialize the suggestion generator with Gemma 3 4B (default)
26
+ suggestion_generator = SuggestionGenerator("google/gemma-3-4b-it")
27
 
28
  # Test the model to make sure it's working
29
  test_result = suggestion_generator.test_model()
 
153
  user_input,
154
  suggestion_type,
155
  selected_topic=None,
156
+ model_name="google/gemma-3-4b-it",
157
  temperature=0.7,
158
  mood=3,
159
  progress=gr.Progress(),
 
462
  with gr.Row():
463
  model_dropdown = gr.Dropdown(
464
  choices=list(AVAILABLE_MODELS.keys()),
465
+ value="google/gemma-3-4b-it",
466
  label="Language Model",
467
  info="Select which AI model to use for generating responses",
468
  )