Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ Upload an image, and this app will generate a short story based on the image.
|
|
| 79 |
|
| 80 |
chunks=[]
|
| 81 |
async def sepia(input_img):
|
| 82 |
-
|
| 83 |
async for e in chain.astream(input={"segmentation_results":input_img}):
|
| 84 |
chunks.append(e)
|
| 85 |
yield "".join(chunks)
|
|
|
|
| 79 |
|
| 80 |
chunks=[]
|
| 81 |
async def sepia(input_img):
|
| 82 |
+
global chunks
|
| 83 |
async for e in chain.astream(input={"segmentation_results":input_img}):
|
| 84 |
chunks.append(e)
|
| 85 |
yield "".join(chunks)
|