Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,10 +98,10 @@ def render_file(file):
|
|
| 98 |
# change_api_key.click(fn=enable_api_box, outputs=[enable_box])
|
| 99 |
|
| 100 |
|
| 101 |
-
|
| 102 |
-
#
|
| 103 |
-
#
|
| 104 |
-
|
| 105 |
|
| 106 |
# with gr.Blocks() as demo:
|
| 107 |
# # ... your UI setup ...
|
|
|
|
| 98 |
# change_api_key.click(fn=enable_api_box, outputs=[enable_box])
|
| 99 |
|
| 100 |
|
| 101 |
+
def render_first(pdf_file):
|
| 102 |
+
# ... Logic to process the PDF
|
| 103 |
+
# ... Generate the first image
|
| 104 |
+
return image
|
| 105 |
|
| 106 |
# with gr.Blocks() as demo:
|
| 107 |
# # ... your UI setup ...
|