Kserus commited on
Commit
c5b8d0d
·
verified ·
1 Parent(s): 501fc1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -23,13 +23,15 @@ class SmartAgent:
23
  def __init__(self):
24
  self.generator = pipeline(
25
  "text2text-generation",
26
- model="google/flan-t5-base",
 
27
  max_new_tokens=128,
28
  temperature=0.3,
29
  do_sample=True,
30
  device_map="auto"
31
  )
32
 
 
33
  # self.system_prompt = (
34
  # "You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer "
35
  # "with the following template: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR "
 
23
  def __init__(self):
24
  self.generator = pipeline(
25
  "text2text-generation",
26
+ model="google/flan-ul2",
27
+ torch_dtype="auto",
28
  max_new_tokens=128,
29
  temperature=0.3,
30
  do_sample=True,
31
  device_map="auto"
32
  )
33
 
34
+
35
  # self.system_prompt = (
36
  # "You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer "
37
  # "with the following template: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR "