Spaces:
Sleeping
Sleeping
Commit
•
ab73ef2
1
Parent(s):
b8062cd
Update app.py
Browse filesChanged back to an image
app.py
CHANGED
@@ -47,8 +47,8 @@ def chat_fn(multimodal_message):
|
|
47 |
with gr.Blocks() as demo:
|
48 |
gr.Markdown("# 🔍 Xray with your recent transitions")
|
49 |
response = gr.Textbox(lines=5, label="Response")
|
50 |
-
chat = gr.MultimodalTextbox(file_types=["
|
51 |
-
show_label=False, placeholder="Upload a document
|
52 |
chat.submit(chat_fn, inputs=chat, outputs=response)
|
53 |
|
54 |
if __name__ == "__main__":
|
|
|
47 |
with gr.Blocks() as demo:
|
48 |
gr.Markdown("# 🔍 Xray with your recent transitions")
|
49 |
response = gr.Textbox(lines=5, label="Response")
|
50 |
+
chat = gr.MultimodalTextbox(file_types=["image"], interactive=True,
|
51 |
+
show_label=False, placeholder="Upload a document image by blicking '+' and ask a question about your records.")
|
52 |
chat.submit(chat_fn, inputs=chat, outputs=response)
|
53 |
|
54 |
if __name__ == "__main__":
|