Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import yaml
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
from langchain.text_splitter import CharacterTextSplitter
|
| 8 |
from typing import List
|
| 9 |
-
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
@@ -68,10 +68,12 @@ final_answer = FinalAnswerTool()
|
|
| 68 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 69 |
|
| 70 |
model = HfApiModel(
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
| 75 |
)
|
| 76 |
|
| 77 |
|
|
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
from langchain.text_splitter import CharacterTextSplitter
|
| 8 |
from typing import List
|
| 9 |
+
import os
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 68 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 69 |
|
| 70 |
model = HfApiModel(
|
| 71 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 72 |
+
token=os.getenv("HF_TOKEN"),
|
| 73 |
+
max_tokens=2096,
|
| 74 |
+
temperature=0.5,
|
| 75 |
+
last_input_token_count=0,
|
| 76 |
+
last_output_token_count=0,
|
| 77 |
)
|
| 78 |
|
| 79 |
|