Spaces:
Runtime error
Runtime error
Resolved merge conflicts
Browse files- Multi-Modal-Assistant-App-backup +1 -0
- README.md +11 -0
- app.py +16 -0
- result/dog-puppy-on-garden-royalty-free-image-1586966191.avif +0 -0
Multi-Modal-Assistant-App-backup
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Subproject commit dd3a9d92da2d08ee4593178e1875f575830889a4
|
README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# AI Multi-Modal Assistant
|
| 2 |
|
| 3 |
## Overview
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: AI Multi-Modal Assistant
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
|
| 12 |
# AI Multi-Modal Assistant
|
| 13 |
|
| 14 |
## Overview
|
app.py
CHANGED
|
@@ -160,12 +160,28 @@ with gr.Blocks() as demo:
|
|
| 160 |
ocr_output = gr.JSON(label="OCR Results")
|
| 161 |
pdf_button_ocr = gr.Button("Download OCR PDF")
|
| 162 |
|
|
|
|
| 163 |
ocr_input.submit(fn=ocr_image, inputs=ocr_input, outputs=ocr_output)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
pdf_button_ocr.click(
|
| 165 |
fn=lambda x: generate_pdf(x),
|
| 166 |
inputs=ocr_output,
|
| 167 |
outputs=gr.File(label="Download PDF Report"),
|
| 168 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
|
| 170 |
# ------------------------------
|
| 171 |
# 5. Launch the App
|
|
|
|
| 160 |
ocr_output = gr.JSON(label="OCR Results")
|
| 161 |
pdf_button_ocr = gr.Button("Download OCR PDF")
|
| 162 |
|
| 163 |
+
<<<<<<< HEAD
|
| 164 |
ocr_input.submit(fn=ocr_image, inputs=ocr_input, outputs=ocr_output)
|
| 165 |
+
=======
|
| 166 |
+
ocr_button = gr.Button("Run OCR")
|
| 167 |
+
|
| 168 |
+
ocr_button.click(
|
| 169 |
+
fn=ocr_image,
|
| 170 |
+
inputs=ocr_input,
|
| 171 |
+
outputs=ocr_output
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
>>>>>>> 6698b189ed616c73e742d7fa56e2e19ebbc0a37b
|
| 175 |
pdf_button_ocr.click(
|
| 176 |
fn=lambda x: generate_pdf(x),
|
| 177 |
inputs=ocr_output,
|
| 178 |
outputs=gr.File(label="Download PDF Report"),
|
| 179 |
)
|
| 180 |
+
<<<<<<< HEAD
|
| 181 |
+
=======
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
>>>>>>> 6698b189ed616c73e742d7fa56e2e19ebbc0a37b
|
| 185 |
|
| 186 |
# ------------------------------
|
| 187 |
# 5. Launch the App
|
result/dog-puppy-on-garden-royalty-free-image-1586966191.avif
DELETED
|
Binary file (51.5 kB)
|
|
|