Uthar commited on
Commit
29ab895
·
verified ·
1 Parent(s): 579e7ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -36,6 +36,17 @@ lock = RLock()
36
 
37
  HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
38
 
 
 
 
 
 
 
 
 
 
 
 
39
  def get_current_time():
40
  now = datetime.now()
41
  current_time = now.strftime("%y-%m-%d %H:%M:%S")
 
36
 
37
  HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
38
 
39
+ # ---------------------------------
40
+
41
+ from huggingface_hub import InferenceClient
42
+
43
+ client = InferenceClient(
44
+ # provider="fal-ai",
45
+ api_key=HF_TOKEN,
46
+ )
47
+
48
+ # ---------------------------------
49
+
50
  def get_current_time():
51
  now = datetime.now()
52
  current_time = now.strftime("%y-%m-%d %H:%M:%S")