Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def process_csv(file, calculate_openai, openai_model, calculate_anthropic, anthr
|
|
68 |
try:
|
69 |
total_tokens_anthropic = client.count_tokens(df.to_csv(index=False))
|
70 |
except Exception as e:
|
71 |
-
return f"Error counting tokens with Anthropic model: {e}"
|
72 |
|
73 |
# Iterate over columns
|
74 |
for col in df.columns:
|
|
|
68 |
try:
|
69 |
total_tokens_anthropic = client.count_tokens(df.to_csv(index=False))
|
70 |
except Exception as e:
|
71 |
+
return f"Error counting tokens with Anthropic model ({anthropic.__version__}): {e}"
|
72 |
|
73 |
# Iterate over columns
|
74 |
for col in df.columns:
|