Sneaksie commited on
Commit
1b5cc63
·
verified ·
1 Parent(s): 17fd0de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def string_counter(substring:str, bigstring:str)-> str: #it's import to specify
22
  count = len(re.findall(substring, bigstring))
23
  return f"{substring} is found {count} times in the string {bigstring}"
24
  except Exception as e:
25
- return f"Error, perhaps the input is wrong and is not a character or sring"
26
 
27
 
28
  @tool
@@ -45,7 +45,7 @@ final_answer = FinalAnswerTool()
45
  model = HfApiModel(
46
  max_tokens=2096,
47
  temperature=0.5,
48
- model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
49
  custom_role_conversions=None,
50
  )
51
 
 
22
  count = len(re.findall(substring, bigstring))
23
  return f"{substring} is found {count} times in the string {bigstring}"
24
  except Exception as e:
25
+ return f"Error, perhaps the input is wrong and is not a character or string"
26
 
27
 
28
  @tool
 
45
  model = HfApiModel(
46
  max_tokens=2096,
47
  temperature=0.5,
48
+ model_id='deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',
49
  custom_role_conversions=None,
50
  )
51