Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,9 @@ import os
|
|
9 |
|
10 |
# Initialize the InferenceClient for PHI 3
|
11 |
client = InferenceClient(
|
12 |
-
"microsoft/Phi-3.5-mini-instruct",
|
13 |
-
token=os.getenv("HF_API_TOKEN", "")
|
|
|
14 |
)
|
15 |
|
16 |
# Check if a GPU is available and use it if possible
|
|
|
9 |
|
10 |
# Initialize the InferenceClient for PHI 3
|
11 |
client = InferenceClient(
|
12 |
+
"microsoft/Phi-3.5-mini-instruct", # Update this to the correct model name for PHI 3
|
13 |
+
token=os.getenv("HF_API_TOKEN", ""),
|
14 |
+
trust_remote_code=True # You can configure this API token through the Hugging Face Secrets
|
15 |
)
|
16 |
|
17 |
# Check if a GPU is available and use it if possible
|