Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -11,7 +11,9 @@ def get_model_info(model_id="Qwen/Qwen2-7B-Instruct", hf_token=os.getenv('HF_TOK
|
|
11 |
url = f"https://huggingface.co/api/integrations/aws/v1/lookup/{model_id}"
|
12 |
headers = {
|
13 |
"Authorization": f"Bearer {hf_token}",
|
14 |
-
"Content-Type": "application/json"
|
|
|
|
|
15 |
}
|
16 |
|
17 |
logging.info(f"Requesting model info for model ID: {model_id}")
|
|
|
11 |
url = f"https://huggingface.co/api/integrations/aws/v1/lookup/{model_id}"
|
12 |
headers = {
|
13 |
"Authorization": f"Bearer {hf_token}",
|
14 |
+
"Content-Type": "application/json",
|
15 |
+
"User-Agent": "Mozilla/5.0", # Add a standard user agent
|
16 |
+
"Accept": "application/json"
|
17 |
}
|
18 |
|
19 |
logging.info(f"Requesting model info for model ID: {model_id}")
|