Fraser commited on
Commit
716bbdf
·
1 Parent(s): 0d9403e
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -260,7 +260,7 @@ class PicletGeneratorService:
260
  """Generate detailed image description using JoyCaption"""
261
  try:
262
  print(f"Connecting to JoyCaption space with user token...")
263
- client = await Client.connect(
264
  PicletGeneratorService.JOY_CAPTION_SPACE,
265
  hf_token=hf_token
266
  )
@@ -290,7 +290,7 @@ class PicletGeneratorService:
290
  """Generate text using GPT-OSS-120B"""
291
  try:
292
  print(f"Connecting to GPT-OSS space...")
293
- client = await Client.connect(
294
  PicletGeneratorService.GPT_OSS_SPACE,
295
  hf_token=hf_token
296
  )
@@ -468,7 +468,7 @@ CRITICAL RULES:
468
  """Generate Piclet image using Flux"""
469
  try:
470
  print(f"Connecting to Flux space...")
471
- client = await Client.connect(
472
  PicletGeneratorService.FLUX_SPACE,
473
  hf_token=hf_token
474
  )
 
260
  """Generate detailed image description using JoyCaption"""
261
  try:
262
  print(f"Connecting to JoyCaption space with user token...")
263
+ client = Client(
264
  PicletGeneratorService.JOY_CAPTION_SPACE,
265
  hf_token=hf_token
266
  )
 
290
  """Generate text using GPT-OSS-120B"""
291
  try:
292
  print(f"Connecting to GPT-OSS space...")
293
+ client = Client(
294
  PicletGeneratorService.GPT_OSS_SPACE,
295
  hf_token=hf_token
296
  )
 
468
  """Generate Piclet image using Flux"""
469
  try:
470
  print(f"Connecting to Flux space...")
471
+ client = Client(
472
  PicletGeneratorService.FLUX_SPACE,
473
  hf_token=hf_token
474
  )