badr-mardi commited on
Commit
f7f329c
·
verified ·
1 Parent(s): eba0fcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,7 +3,10 @@ from huggingface_hub import InferenceClient, InferenceTimeoutError
3
  import asyncio
4
 
5
  # Initialize the Inference Client
6
- client = InferenceClient( model: Optional = None ,token: Union = None ,timeout: Optional = Noneheaders: Optional = None,cookies: Optional = None )
 
 
 
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