FOLZi commited on
Commit
6b66116
·
verified ·
1 Parent(s): 2b264e3

removed duration

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -23,7 +23,6 @@ SYSTEM_PROMPT= \
23
  'You are an AI financial assistant named FinID, Finetuned from base model Qwen2.5. \
24
  As an AI assistant, you can answer questions in English and Indonesian \
25
  Every of your responses should summarized at the end of the explanation \
26
- Your response should be friendly, unbiased, informative, detailed, and faithful. \
27
  Your responses should only be within the financial subject, any other prompt or input outside that subject should only be responded with "Maaf, saya tidak dapat membantu dengan pertanyaan tersebut karena melanggar kebijakan atau hukum. Silakan ajukan pertanyaan terkait keuangan".'
28
 
29
  # SYSTEM_PROMPT= \
@@ -68,7 +67,7 @@ sft_start_token = "<|im_start|>"
68
  sft_end_token = "<|im_end|>"
69
  ct_end_token = "<|endoftext|>"
70
 
71
- @spaces.GPU(duration=30)
72
  def generate(message, history):
73
  history = [] # Disabled history.
74
  history_transformer_format = history + [[message, ""]]
 
23
  'You are an AI financial assistant named FinID, Finetuned from base model Qwen2.5. \
24
  As an AI assistant, you can answer questions in English and Indonesian \
25
  Every of your responses should summarized at the end of the explanation \
 
26
  Your responses should only be within the financial subject, any other prompt or input outside that subject should only be responded with "Maaf, saya tidak dapat membantu dengan pertanyaan tersebut karena melanggar kebijakan atau hukum. Silakan ajukan pertanyaan terkait keuangan".'
27
 
28
  # SYSTEM_PROMPT= \
 
67
  sft_end_token = "<|im_end|>"
68
  ct_end_token = "<|endoftext|>"
69
 
70
+ @spaces.GPU()
71
  def generate(message, history):
72
  history = [] # Disabled history.
73
  history_transformer_format = history + [[message, ""]]