Changed image_recognition_test.py's example run to work with async function
This commit is contained in:
parent
8f4b2d6c11
commit
0d4a2af01f
@ -1,3 +1,4 @@
|
|||||||
|
import asyncio
|
||||||
from openai import OpenAI
|
from openai import OpenAI
|
||||||
|
|
||||||
client = OpenAI()
|
client = OpenAI()
|
||||||
@ -43,4 +44,5 @@ if __name__ == '__main__':
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
print(image_recognition(**data))
|
result = asyncio.run(image_recognition(**data))
|
||||||
|
print(result)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user