Not use gradio_client.file for Fuyu-8B.
Browse files
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 |
-
|
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 |
)
|