Nauryzbay commited on
Commit
15fc5af
1 Parent(s): a6ed840

few updates

Browse files
Files changed (2) hide show
  1. app.py +7 -3
  2. demo.png +0 -0
app.py CHANGED
@@ -18,14 +18,16 @@ def upload_file(file):
18
  return file.name
19
 
20
  description = r"""
21
- <b> Scideck </b> is a tool that allows you to convert your PDF files into a presentation deck.
22
  <br>
23
 
24
  ❗️❗️❗️[<b>Important</b>] Instructions:<br>
25
  1️⃣ <b>Upload the PDF document</b>: Select the PDF file you want to convert into slides.<br>
26
- 2️⃣ <b>Specify the number of pages</b>: Indicate the range of pages you'd like to include in the slide generation.<b>Set it to 0</b> if you want to include all pages <br>
27
  3️⃣ <b>Click the Generate button</b>: Initiate the slide generation process by clicking the designated "Generate" button.<br>
28
  4️⃣ <b>Wait for approximately 200 seconds</b>: Allow a brief moment for the system to generate the slides. The process may take up to 200 seconds.<br>
 
 
29
  """
30
 
31
  read_key = os.environ.get("HF_TOKEN", None)
@@ -33,8 +35,10 @@ read_key = os.environ.get("HF_TOKEN", None)
33
  if __name__ == "__main__":
34
  client = Client.duplicate("Nauryzbay/deckify_private", hf_token=read_key)
35
 
 
36
  with gr.Blocks() as demo:
37
- gr.Markdown("# Scideck: Generate slides (LaTeX Beamer) from PDF")
 
38
  gr.Markdown(description)
39
 
40
  file_output = gr.File()
 
18
  return file.name
19
 
20
  description = r"""
21
+ <h3> Scideck is a tool that allows you to convert your PDF files into a presentation deck.</h3>
22
  <br>
23
 
24
  ❗️❗️❗️[<b>Important</b>] Instructions:<br>
25
  1️⃣ <b>Upload the PDF document</b>: Select the PDF file you want to convert into slides.<br>
26
+ 2️⃣ <b>Specify the number of pages</b>: Indicate the range of pages you'd like to include in the slide generation. <b>Set it to 0</b> if you want to include all pages. <br>
27
  3️⃣ <b>Click the Generate button</b>: Initiate the slide generation process by clicking the designated "Generate" button.<br>
28
  4️⃣ <b>Wait for approximately 200 seconds</b>: Allow a brief moment for the system to generate the slides. The process may take up to 200 seconds.<br>
29
+
30
+ 📝 If you get an error message, you can send me email with the PDF file attached to this email address: <b>nkoisheke [at] ethz [dot] ch</b>, and I will generate the slides for you. If there are any other issues or questions, please do not hesitate to contact me 🤗 <br>
31
  """
32
 
33
  read_key = os.environ.get("HF_TOKEN", None)
 
35
  if __name__ == "__main__":
36
  client = Client.duplicate("Nauryzbay/deckify_private", hf_token=read_key)
37
 
38
+ temp = "<h1> SCIDECK: Generate slides (LaTeX Beamer) from PDF</h1>"
39
  with gr.Blocks() as demo:
40
+ gr.Markdown(temp)
41
+ gr.Image("demo.png", width=600, show_download_button=False, show_label=False)
42
  gr.Markdown(description)
43
 
44
  file_output = gr.File()
demo.png ADDED