lyttt commited on
Commit
8132819
·
1 Parent(s): 841a2e8
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def greet(image):
13
  image = Image.fromarray(image, mode='RGB')
14
  with torch.no_grad():
15
  outputs = model([image]).generated_text[0]
16
- return output
17
 
18
  demo = gr.Interface(fn=greet, inputs="image", outputs="text")
19
  demo.launch()
 
13
  image = Image.fromarray(image, mode='RGB')
14
  with torch.no_grad():
15
  outputs = model([image]).generated_text[0]
16
+ return outputs
17
 
18
  demo = gr.Interface(fn=greet, inputs="image", outputs="text")
19
  demo.launch()