Spaces:
Paused
Paused
Update app.py
Browse files9 unmodified lines1011121314151617201 unmodified lines2192202212202222232242232252262272289 unmodified linesfrom huggingface_hub import hf_hub_url, cached_download, HfApiimport base64
HF_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 lines if agent_prompt is None: return f"Agent {agent_name} not found."
model_name ="MaziyarPanahi/Codestral-22B-v0.1-GGUF" model_name ="bigscience/T0_3B" try: from transformers import AutoModel, AutoTokenizer # Import AutoModel here model = AutoModel.from_pretrained("MaziyarPanahi/Codestral-22B-v0.1-GGUF") model = ("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