hysts HF staff commited on
Commit
fd31c86
1 Parent(s): 64325c9

Not use gradio_client.file for Fuyu-8B.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def generate_caption_fuyu(image_path: str) -> str:
102
  try:
103
  client = Client("adept/fuyu-8b-demo")
104
  return client.predict(
105
- file(image_path),
106
  "Generate a coco style caption.\n",
107
  fn_index=3,
108
  )
 
102
  try:
103
  client = Client("adept/fuyu-8b-demo")
104
  return client.predict(
105
+ image_path,
106
  "Generate a coco style caption.\n",
107
  fn_index=3,
108
  )