Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
import fastf1
|
|
|
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
|
@@ -47,6 +48,7 @@ max_tokens=2096,
|
|
| 47 |
temperature=0.5,
|
| 48 |
model_id='https://hw8xnfe229rbxakk.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
|
| 49 |
custom_role_conversions=None,
|
|
|
|
| 50 |
)
|
| 51 |
|
| 52 |
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
import fastf1
|
| 7 |
+
import os
|
| 8 |
from tools.final_answer import FinalAnswerTool
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
|
|
|
| 48 |
temperature=0.5,
|
| 49 |
model_id='https://hw8xnfe229rbxakk.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
|
| 50 |
custom_role_conversions=None,
|
| 51 |
+
token=os.getenv(HF_TOKEN)
|
| 52 |
)
|
| 53 |
|
| 54 |
|