Changed image_recognition_test.py's example run to work with async function
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user