Spaces:
Sleeping
Sleeping
sunnychenxiwang
commited on
Commit
•
c94c846
1
Parent(s):
f606d30
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from pipeline.run_pipeline import *
|
|
12 |
# '''
|
13 |
# text = "A person is cutting a birthday cake with two red candles that spell out \"21\". The surface of the cake is round, and there is a balloon in the room. The person is using a silver knife to cut the cake."
|
14 |
# image_path = "/newdisk3/wcx/val2014/COCO_val2014_000000297425.jpg"
|
15 |
-
pipeline = Pipeline(type="image-to-text", api_key="sk-
|
16 |
# res,claim_list = pipeline.run(text=text, image_path=image_path,type="image-to-text")
|
17 |
# print(res)
|
18 |
|
|
|
12 |
# '''
|
13 |
# text = "A person is cutting a birthday cake with two red candles that spell out \"21\". The surface of the cake is round, and there is a balloon in the room. The person is using a silver knife to cut the cake."
|
14 |
# image_path = "/newdisk3/wcx/val2014/COCO_val2014_000000297425.jpg"
|
15 |
+
pipeline = Pipeline(type="image-to-text", api_key="sk-jD8DeGdJKrdOxpiQ5bD4845bB53346C3A0E9Ed479bE08676", base_url="https://oneapi.xty.app/v1")
|
16 |
# res,claim_list = pipeline.run(text=text, image_path=image_path,type="image-to-text")
|
17 |
# print(res)
|
18 |
|