Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadd and hf access token
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import yaml
|
| 2 |
import gradio as gr
|
| 3 |
|
|
@@ -8,6 +9,10 @@ from tools.search import search
|
|
| 8 |
from tools.categorize_occasion import categorize_occasion
|
| 9 |
from tools.estimate_preparation_time import estimate_preparation_time
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
model = HfApiModel(
|
| 12 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 13 |
provider=None,
|
|
|
|
| 1 |
+
import os
|
| 2 |
import yaml
|
| 3 |
import gradio as gr
|
| 4 |
|
|
|
|
| 9 |
from tools.categorize_occasion import categorize_occasion
|
| 10 |
from tools.estimate_preparation_time import estimate_preparation_time
|
| 11 |
|
| 12 |
+
from huggingface_hub import login
|
| 13 |
+
|
| 14 |
+
login(token=os.getenv('HF_TOKEN'))
|
| 15 |
+
|
| 16 |
model = HfApiModel(
|
| 17 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 18 |
provider=None,
|