Update main.py
Browse files
main.py
CHANGED
|
@@ -1167,6 +1167,7 @@ def ask_perp(prompt, system=NBA_ANALYST_SYSTEM_PROMPT, max_tokens=1000, temp=0.2
|
|
| 1167 |
logging.error(f"An unexpected error occurred with Perplexity API: {e}")
|
| 1168 |
return f"An unexpected error occurred with AI: {str(e)}"
|
| 1169 |
|
|
|
|
| 1170 |
@app.route('/api/nba/players', methods=['GET'])
|
| 1171 |
@cross_origin()
|
| 1172 |
def get_players():
|
|
|
|
| 1167 |
logging.error(f"An unexpected error occurred with Perplexity API: {e}")
|
| 1168 |
return f"An unexpected error occurred with AI: {str(e)}"
|
| 1169 |
|
| 1170 |
+
|
| 1171 |
@app.route('/api/nba/players', methods=['GET'])
|
| 1172 |
@cross_origin()
|
| 1173 |
def get_players():
|