acecalisto3 commited on
Commit
85dfba5
·
verified ·
1 Parent(s): df9f72d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -10,6 +10,8 @@ import torch
10
  from huggingface_hub import hf_hub_url, cached_download, HfApi
11
  import base64
12
 
 
 
13
  # Add the new HTML code below
14
  custom_html = '''
15
  <div style='position:fixed;bottom:0;left:0;width:100%;'>
@@ -217,10 +219,10 @@ def chat_interface_with_agent(input_text, agent_name):
217
  if agent_prompt is None:
218
  return f"Agent {agent_name} not found."
219
 
220
- model_name ="MaziyarPanahi/Codestral-22B-v0.1-GGUF"
221
  try:
222
  from transformers import AutoModel, AutoTokenizer # Import AutoModel here
223
- model = AutoModel.from_pretrained("MaziyarPanahi/Codestral-22B-v0.1-GGUF")
224
  tokenizer = AutoTokenizer.from_pretrained(model_name)
225
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
226
  except EnvironmentError as e:
 
10
  from huggingface_hub import hf_hub_url, cached_download, HfApi
11
  import base64
12
 
13
+ HF_TOKEN = os.environ.get("HF_TOKEN", None)
14
+
15
  # Add the new HTML code below
16
  custom_html = '''
17
  <div style='position:fixed;bottom:0;left:0;width:100%;'>
 
219
  if agent_prompt is None:
220
  return f"Agent {agent_name} not found."
221
 
222
+ model_name ="bigscience/T0_3B"
223
  try:
224
  from transformers import AutoModel, AutoTokenizer # Import AutoModel here
225
+ model = ("bigscience/T0_3B")
226
  tokenizer = AutoTokenizer.from_pretrained(model_name)
227
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
228
  except EnvironmentError as e: