refactor: pil
Browse files
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(
|
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,
|