Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,8 @@ def caption(image, prompt):
|
|
32 |
]
|
33 |
}
|
34 |
],
|
35 |
-
max_tokens=1024
|
|
|
36 |
):
|
37 |
out += chunk.choices[0].delta.content
|
38 |
yield out
|
|
|
32 |
]
|
33 |
}
|
34 |
],
|
35 |
+
max_tokens=1024,
|
36 |
+
stream=True
|
37 |
):
|
38 |
out += chunk.choices[0].delta.content
|
39 |
yield out
|