unclemusclez commited on
Commit
3e294fd
·
verified ·
1 Parent(s): 88ac0fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def process_model(model_id, q_method, latest, oauth_token: gr.OAuthToken | None)
68
  raise Exception(f"Error converting to Ollama: {ollama_push_result.stderr}")
69
  print("Model pushed to Ollama library successfully!")
70
 
71
- if latest = True:
72
  ollama_copy = f"ollama cp {OLLAMA_USERNAME}/{model_id}:{q_method} {OLLAMA_USERNAME}/{model_id}:latest"
73
  ollama_copy_result = subprocess.run(ollama_copy, shell=True, capture_output=True)
74
  print(ollama_push_result)
 
68
  raise Exception(f"Error converting to Ollama: {ollama_push_result.stderr}")
69
  print("Model pushed to Ollama library successfully!")
70
 
71
+ if latest == True:
72
  ollama_copy = f"ollama cp {OLLAMA_USERNAME}/{model_id}:{q_method} {OLLAMA_USERNAME}/{model_id}:latest"
73
  ollama_copy_result = subprocess.run(ollama_copy, shell=True, capture_output=True)
74
  print(ollama_push_result)