Lisandro commited on
Commit
5ade8f2
·
1 Parent(s): 1aa78bf

pasé api key dentro de a función

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,12 +2,12 @@ import os
2
  import gradio as gr
3
  from gradio_client import Client
4
 
5
- api_key = os.getenv('HF_API_KEY')
6
 
7
 
8
  def predict(prompt):
9
  custom_model = "lichorosario/dott_remastered_style_lora_sdxl"
10
  weight_name = "dott_style.safetensors"
 
11
  client = Client("fffiloni/sd-xl-custom-model", api_key=api_key)
12
 
13
  # Load the model
 
2
  import gradio as gr
3
  from gradio_client import Client
4
 
 
5
 
6
 
7
  def predict(prompt):
8
  custom_model = "lichorosario/dott_remastered_style_lora_sdxl"
9
  weight_name = "dott_style.safetensors"
10
+ api_key = os.getenv('HF_API_KEY')
11
  client = Client("fffiloni/sd-xl-custom-model", api_key=api_key)
12
 
13
  # Load the model