Spaces:
Sleeping
Sleeping
Update app.py
Browse files5 unmodified lines678910111255 unmodified lines686970717273747576775 unmodified linesfrom tools.final_answer import FinalAnswerToolfrom langchain.text_splitter import CharacterTextSplitterfrom typing import Listfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !55 unmodified lines# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = HfApiModel(max_tokens=2096,temperature=0.5,model_id='meta-llama/Llama-3.2-3B-Instruct', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloadedcustom_role_conversions=None,)5 unmodified lines678910111255 unmodified lines6869707172737475767778795 unmodified linesfrom tools.final_answer import FinalAnswerToolfrom langchain.text_splitter import CharacterTextSplitterfrom typing import Listimport osfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !55 unmodified lines# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct",token=os.getenv("HF_TOKEN"),max_tokens=2096,temperature=0.5,last_input_token_count=0,last_output_token_count=0,)
app.py+7-5