Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -10,7 +10,7 @@ import os
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
12
  # Set your Hugging Face token
13
- HUGGINGFACE_TOKEN = os.getenv("HUGGINGFACE_TOKEN")
14
  login(token=HUGGINGFACE_TOKEN)
15
 
16
  # Path to your model repository and safetensors weights
@@ -192,7 +192,12 @@ with gr.Blocks(css=css) as demo:
192
  value=30,
193
  )
194
 
195
- gr.Examples(examples=examples, inputs=prompt)
 
 
 
 
 
196
 
197
  run_button.click(
198
  fn=infer,
 
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
12
  # Set your Hugging Face token
13
+ HUGGINGFACE_TOKEN = os.getenv("HUGGINGFACE_HUGGINGFACE_TOKEN")
14
  login(token=HUGGINGFACE_TOKEN)
15
 
16
  # Path to your model repository and safetensors weights
 
192
  value=30,
193
  )
194
 
195
+ gr.Examples(
196
+ examples=examples,
197
+ inputs=[prompt],
198
+ fn=infer,
199
+ outputs=[result]
200
+ )
201
 
202
  run_button.click(
203
  fn=infer,