Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ import os
|
|
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 |
-
|
15 |
)
|
16 |
|
17 |
# Check if a GPU is available and use it if possible
|
|
|
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 |
+
# 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
|