Update app.py
Browse files
app.py
CHANGED
|
@@ -182,14 +182,14 @@ os.makedirs(f"./{BROWSER_CONFIG['downloads_folder']}", exist_ok=True)
|
|
| 182 |
|
| 183 |
|
| 184 |
model = HfApiModel(
|
| 185 |
-
max_tokens=
|
| 186 |
temperature=0.5,
|
| 187 |
#model_id='meta-llama/Llama-3.3-70B-Instruct',
|
| 188 |
model_id='deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',
|
| 189 |
custom_role_conversions=None,
|
| 190 |
)
|
| 191 |
|
| 192 |
-
text_limit =
|
| 193 |
ti_tool = TextInspectorTool(model, text_limit)
|
| 194 |
|
| 195 |
browser = SimpleTextBrowser(**BROWSER_CONFIG)
|
|
@@ -218,7 +218,7 @@ def create_agent():
|
|
| 218 |
planning_interval=10,
|
| 219 |
)
|
| 220 |
|
| 221 |
-
document_inspection_tool = TextInspectorTool(model,
|
| 222 |
|
| 223 |
def stream_to_gradio(
|
| 224 |
agent,
|
|
|
|
| 182 |
|
| 183 |
|
| 184 |
model = HfApiModel(
|
| 185 |
+
max_tokens=16384,
|
| 186 |
temperature=0.5,
|
| 187 |
#model_id='meta-llama/Llama-3.3-70B-Instruct',
|
| 188 |
model_id='deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',
|
| 189 |
custom_role_conversions=None,
|
| 190 |
)
|
| 191 |
|
| 192 |
+
text_limit = 15000
|
| 193 |
ti_tool = TextInspectorTool(model, text_limit)
|
| 194 |
|
| 195 |
browser = SimpleTextBrowser(**BROWSER_CONFIG)
|
|
|
|
| 218 |
planning_interval=10,
|
| 219 |
)
|
| 220 |
|
| 221 |
+
document_inspection_tool = TextInspectorTool(model, text_limit)
|
| 222 |
|
| 223 |
def stream_to_gradio(
|
| 224 |
agent,
|