5m4ck3r commited on
Commit
0841eca
·
verified ·
1 Parent(s): a529cfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from huggingface_hub.inference_api import InferenceClient
2
  import gradio as gr
3
  import numpy as np
@@ -7,7 +9,6 @@ import torch
7
  import tempfile
8
  import os
9
  from PIL import Image
10
- import os
11
 
12
  token = os.environ["API_TOKEN"]
13
  model = InferenceClient("black-forest-labs/FLUX.1-schnell", token=token)
 
1
+ import os
2
+ os.system("pip install git+https://github.com/huggingface/huggingface_hub")
3
  from huggingface_hub.inference_api import InferenceClient
4
  import gradio as gr
5
  import numpy as np
 
9
  import tempfile
10
  import os
11
  from PIL import Image
 
12
 
13
  token = os.environ["API_TOKEN"]
14
  model = InferenceClient("black-forest-labs/FLUX.1-schnell", token=token)