Spaces:
Running
Running
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from convert import convert_pdf_to_pgn
|
| 3 |
-
|
| 4 |
-
# Create the Gradio interface
|
| 5 |
-
iface = gr.Interface(
|
| 6 |
-
fn=convert_pdf_to_pgn,
|
| 7 |
-
inputs=gr.File(label="Upload PDF"),
|
| 8 |
-
outputs=[gr.File(label="Download Processed PGN File"), gr.HTML(label="Lichess Link")],
|
| 9 |
-
title="Chess Book PDF to PGN Converter",
|
| 10 |
-
description="Upload a PDF file containing a game from a chess book and download the processed PGN file."
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
# Launch the interface
|
| 14 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|