Raffaele Terribile
commited on
Aggiungi print di debug
Browse files
app.py
CHANGED
|
@@ -27,6 +27,8 @@ class FirstAgent:
|
|
| 27 |
### First Agent is the first attempt to develop an agent for the course. ###
|
| 28 |
def __init__(self):
|
| 29 |
# Usa un modello Hugging Face gratuito
|
|
|
|
|
|
|
| 30 |
token = os.getenv(os.getenv("TOKEN_NAME"))
|
| 31 |
os.environ["HF_TOKEN"] = token
|
| 32 |
model = InferenceClientModel(
|
|
|
|
| 27 |
### First Agent is the first attempt to develop an agent for the course. ###
|
| 28 |
def __init__(self):
|
| 29 |
# Usa un modello Hugging Face gratuito
|
| 30 |
+
print("Present" if os.getenv("TOKEN_NAME") else "Not Present")
|
| 31 |
+
print("Present Present" if os.getenv(os.getenv("TOKEN_NAME")) else "Not Present Not Present")
|
| 32 |
token = os.getenv(os.getenv("TOKEN_NAME"))
|
| 33 |
os.environ["HF_TOKEN"] = token
|
| 34 |
model = InferenceClientModel(
|