Spaces:
Paused
Paused
Update app.py
Browse files9 unmodified lines101112131415201 unmodified lines2172182192202212222232242252269 unmodified linesfrom huggingface_hub import hf_hub_url, cached_download, HfApiimport base64# Add the new HTML code belowcustom_html = '''<div style='position:fixed;bottom:0;left:0;width:100%;'>201 unmodified linesif agent_prompt is None:return f"Agent {agent_name} not found."model_name ="MaziyarPanahi/Codestral-22B-v0.1-GGUF"try:from transformers import AutoModel, AutoTokenizer # Import AutoModel heremodel = AutoModel.from_pretrained("MaziyarPanahi/Codestral-22B-v0.1-GGUF")tokenizer = AutoTokenizer.from_pretrained(model_name)generator = pipeline("text-generation", model=model, tokenizer=tokenizer)except EnvironmentError as e:9 unmodified lines1011121314151617201 unmodified lines2192202212222232242252262272289 unmodified linesfrom huggingface_hub import hf_hub_url, cached_download, HfApiimport base64HF_TOKEN = os.environ.get("HF_TOKEN", None)# Add the new HTML code belowcustom_html = '''<div style='position:fixed;bottom:0;left:0;width:100%;'>201 unmodified linesif agent_prompt is None:return f"Agent {agent_name} not found."model_name ="bigscience/T0_3B"try:from transformers import AutoModel, AutoTokenizer # Import AutoModel heremodel = ("bigscience/T0_3B")tokenizer = AutoTokenizer.from_pretrained(model_name)generator = pipeline("text-generation", model=model, tokenizer=tokenizer)except EnvironmentError as e:
app.py+4-2