Delete check_status.py
Browse files- check_status.py +0 -74
check_status.py
DELETED
|
@@ -1,74 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
"""
|
| 3 |
-
Check the status of Brello Thinking on Hugging Face
|
| 4 |
-
"""
|
| 5 |
-
|
| 6 |
-
import requests
|
| 7 |
-
import time
|
| 8 |
-
|
| 9 |
-
def check_readme_access():
|
| 10 |
-
"""Check if README.md is accessible as text"""
|
| 11 |
-
url = "https://huggingface.co/BrelloES/brello-thinking/raw/main/README.md"
|
| 12 |
-
|
| 13 |
-
try:
|
| 14 |
-
response = requests.get(url)
|
| 15 |
-
if response.status_code == 200:
|
| 16 |
-
content = response.text
|
| 17 |
-
if content.startswith("---") and "Brello Thinking" in content:
|
| 18 |
-
print("β
README.md is accessible and contains proper content")
|
| 19 |
-
return True
|
| 20 |
-
else:
|
| 21 |
-
print("β README.md is accessible but content may be incorrect")
|
| 22 |
-
return False
|
| 23 |
-
else:
|
| 24 |
-
print(f"β README.md not accessible (Status: {response.status_code})")
|
| 25 |
-
return False
|
| 26 |
-
except Exception as e:
|
| 27 |
-
print(f"β Error accessing README.md: {e}")
|
| 28 |
-
return False
|
| 29 |
-
|
| 30 |
-
def check_model_card_access():
|
| 31 |
-
"""Check if model_card.md is accessible as text"""
|
| 32 |
-
url = "https://huggingface.co/BrelloES/brello-thinking/raw/main/model_card.md"
|
| 33 |
-
|
| 34 |
-
try:
|
| 35 |
-
response = requests.get(url)
|
| 36 |
-
if response.status_code == 200:
|
| 37 |
-
content = response.text
|
| 38 |
-
if content.startswith("---") and "Brello Thinking" in content:
|
| 39 |
-
print("β
model_card.md is accessible and contains proper content")
|
| 40 |
-
return True
|
| 41 |
-
else:
|
| 42 |
-
print("β model_card.md is accessible but content may be incorrect")
|
| 43 |
-
return False
|
| 44 |
-
else:
|
| 45 |
-
print(f"β model_card.md not accessible (Status: {response.status_code})")
|
| 46 |
-
return False
|
| 47 |
-
except Exception as e:
|
| 48 |
-
print(f"β Error accessing model_card.md: {e}")
|
| 49 |
-
return False
|
| 50 |
-
|
| 51 |
-
def main():
|
| 52 |
-
print("π€ BRELLO THINKING - STATUS CHECK")
|
| 53 |
-
print("="*50)
|
| 54 |
-
|
| 55 |
-
print("Checking file accessibility...")
|
| 56 |
-
readme_ok = check_readme_access()
|
| 57 |
-
model_card_ok = check_model_card_access()
|
| 58 |
-
|
| 59 |
-
print("\n" + "="*50)
|
| 60 |
-
if readme_ok and model_card_ok:
|
| 61 |
-
print("π SUCCESS! Files should now display properly on Hugging Face")
|
| 62 |
-
print("\nπ Next Steps:")
|
| 63 |
-
print("1. Refresh the page: https://huggingface.co/BrelloES/brello-thinking")
|
| 64 |
-
print("2. The YAML warning should be gone")
|
| 65 |
-
print("3. The model card should display properly")
|
| 66 |
-
print("4. All content should be visible")
|
| 67 |
-
else:
|
| 68 |
-
print("β Some files may still have issues")
|
| 69 |
-
print("Please wait a few minutes and try refreshing the page")
|
| 70 |
-
|
| 71 |
-
print("\nπ Repository URL: https://huggingface.co/BrelloES/brello-thinking")
|
| 72 |
-
|
| 73 |
-
if __name__ == "__main__":
|
| 74 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|