aldohenrique commited on
Commit
8823c04
·
verified ·
1 Parent(s): b26ce6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -3,14 +3,20 @@ from transformers import pipeline
3
  import os
4
 
5
  # Modelos leves recomendados
 
 
6
  MODEL_OPTIONS = {
7
  "Qwen2.5:3B": "Qwen/Qwen2.5-3B-Instruct",
8
  "GPT-2 Médio": "gpt2-medium",
9
- "BLOOM (560M)": "bigscience/bloom-560m"
 
 
10
  }
11
 
 
 
12
  # Escolha o modelo Qwen2.5
13
- MODEL_NAME = MODEL_OPTIONS["Qwen2.5:3B"]
14
 
15
  def load_model():
16
  global MODEL_NAME # Declarar global no início da função
 
3
  import os
4
 
5
  # Modelos leves recomendados
6
+
7
+
8
  MODEL_OPTIONS = {
9
  "Qwen2.5:3B": "Qwen/Qwen2.5-3B-Instruct",
10
  "GPT-2 Médio": "gpt2-medium",
11
+ "BLOOM (560M)": "bigscience/bloom-560m",
12
+ "DistilGPT2": "distilgpt2",
13
+ "TinyLLaMA": "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
14
  }
15
 
16
+
17
+
18
  # Escolha o modelo Qwen2.5
19
+ MODEL_NAME = MODEL_OPTIONS["TinyLLaMA"]
20
 
21
  def load_model():
22
  global MODEL_NAME # Declarar global no início da função