Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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='
|
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 |
|