Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,10 @@ from huggingface_hub import InferenceClient, InferenceTimeoutError
|
|
3 |
import asyncio
|
4 |
|
5 |
# Initialize the Inference Client
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
|
9 |
# Function to get response synchronously
|
|
|
3 |
import asyncio
|
4 |
|
5 |
# Initialize the Inference Client
|
6 |
+
model_id = "gpt-3.5-turbo" # Replace with your desired model ID
|
7 |
+
api_token = "hf_your_actual_token_here" # Replace with your actual Hugging Face API token
|
8 |
+
|
9 |
+
client = InferenceClient(model=model_id, token=api_token)
|
10 |
|
11 |
|
12 |
# Function to get response synchronously
|