kartik91 commited on
Commit
b3263af
·
verified ·
1 Parent(s): 6abc848

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,9 +77,9 @@ description = """
77
  Upload an image, and this app will generate a short story based on the image.
78
  """
79
 
80
-
81
  async def sepia(input_img):
82
- chunks=[]
83
  async for e in chain.astream(input={"segmentation_results":input_img}):
84
  chunks.append(e)
85
  yield "".join(chunks)
 
77
  Upload an image, and this app will generate a short story based on the image.
78
  """
79
 
80
+ chunks=[]
81
  async def sepia(input_img):
82
+ globals chunks
83
  async for e in chain.astream(input={"segmentation_results":input_img}):
84
  chunks.append(e)
85
  yield "".join(chunks)