Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,9 +122,11 @@ hf_token = os.environ.get("HUGGINGFACEHUB_API_TOKEN")
|
|
| 122 |
llm = HuggingFaceEndpoint(
|
| 123 |
repo_id="google/flan-t5-xl",
|
| 124 |
huggingfacehub_api_token=hf_token,
|
| 125 |
-
|
|
|
|
| 126 |
)
|
| 127 |
|
|
|
|
| 128 |
tools = [wiki_tool, youtube_tool, audio_tool, excel_tool, image_tool, repl_tool]
|
| 129 |
agent_instance = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
|
| 130 |
|
|
|
|
| 122 |
llm = HuggingFaceEndpoint(
|
| 123 |
repo_id="google/flan-t5-xl",
|
| 124 |
huggingfacehub_api_token=hf_token,
|
| 125 |
+
temperature=0.2,
|
| 126 |
+
max_length=1024
|
| 127 |
)
|
| 128 |
|
| 129 |
+
|
| 130 |
tools = [wiki_tool, youtube_tool, audio_tool, excel_tool, image_tool, repl_tool]
|
| 131 |
agent_instance = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
|
| 132 |
|