Spaces:
Runtime error
Runtime error
Update app.py
Browse files123467 unmodified lines727374757677787980818283from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool, LiteLLMModelimport datetimeimport requestsimport pytz67 unmodified lines# temperature=0.5# )model = LocalModel(model_id="TheBloke/vicuna-7B-1.1-HF",trust_remote_code=True, # needed if the repo defines its own model classesdevice="cuda", # or "cpu" if no GPUquantize="4bit" # optional: drastically reduce VRAM usage)# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)1234567 unmodified lines7374757677787980from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool, LiteLLMModelfrom ollama.smol_compatiable_model import OllamaQwen7BClientModelimport datetimeimport requestsimport pytz67 unmodified lines# temperature=0.5# )model = OllamaQwen7BClientModel()# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
app.py+3-6