Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -20,7 +20,10 @@ if __name__ == "__main__":
|
|
20 |
client = Client.duplicate("Nauryzbay/deckify_private", hf_token=read_key)
|
21 |
|
22 |
with gr.Blocks() as demo:
|
23 |
-
file = gr.File(label="
|
|
|
|
|
|
|
24 |
number_of_pages = gr.Number(label="Number of pages")
|
25 |
secret = gr.Textbox(label="Password", type="password")
|
26 |
output = gr.Textbox(label="Output")
|
|
|
20 |
client = Client.duplicate("Nauryzbay/deckify_private", hf_token=read_key)
|
21 |
|
22 |
with gr.Blocks() as demo:
|
23 |
+
file = gr.File(label="PDF File")
|
24 |
+
upload_button = gr.UploadButton("Click to Upload a PDF File", file_types=["file"], file_count="single")
|
25 |
+
upload_button.upload(upload_file, upload_button, file_output)
|
26 |
+
|
27 |
number_of_pages = gr.Number(label="Number of pages")
|
28 |
secret = gr.Textbox(label="Password", type="password")
|
29 |
output = gr.Textbox(label="Output")
|