JuanMa360 commited on
Commit
76e6c40
·
1 Parent(s): bd98998

refactor: pil

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def generate_answer(text, image):
25
  return tokenizer.decode(output_ids[input_ids.shape[1]:], skip_special_tokens=True).strip()
26
 
27
  text_input = gr.Textbox(lines=5, label="Enter text")
28
- image_input = gr.Image(shape=(224, 224), label="Upload Image")
29
 
30
  iface = gr.Interface(
31
  fn=generate_answer,
 
25
  return tokenizer.decode(output_ids[input_ids.shape[1]:], skip_special_tokens=True).strip()
26
 
27
  text_input = gr.Textbox(lines=5, label="Enter text")
28
+ image_input = gr.Image(type="pil", label="Upload Image")
29
 
30
  iface = gr.Interface(
31
  fn=generate_answer,