Update main.py
Browse files
main.py
CHANGED
@@ -10,9 +10,9 @@ def get_answer(image: str, question: str):
|
|
10 |
spid = os.getenv('SPID')
|
11 |
hug = hugging(spid)
|
12 |
filelink = hug.upload(filename)
|
13 |
-
|
14 |
-
file_size =
|
15 |
-
|
16 |
data = [
|
17 |
{
|
18 |
"meta": {
|
|
|
10 |
spid = os.getenv('SPID')
|
11 |
hug = hugging(spid)
|
12 |
filelink = hug.upload(filename)
|
13 |
+
image.seek(0, 2)
|
14 |
+
file_size = image.tell()
|
15 |
+
image.seek(0)
|
16 |
data = [
|
17 |
{
|
18 |
"meta": {
|