Mohamed Rashad commited on
Commit
e8509f3
·
1 Parent(s): d0f7e21

fix: Update example_pdfs to store paths as strings for compatibility

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ There are three models available:
123
  """
124
 
125
  example_images = list(Path(__file__).parent.glob("*.jpeg"))
126
- example_pdfs = list(Path(__file__).parent.glob("*.pdf"))
127
 
128
  with gr.Blocks(title="Arabic Nougat") as demo:
129
  gr.HTML(
 
123
  """
124
 
125
  example_images = list(Path(__file__).parent.glob("*.jpeg"))
126
+ example_pdfs = [str(p) for p in Path(__file__).parent.glob("*.pdf")]
127
 
128
  with gr.Blocks(title="Arabic Nougat") as demo:
129
  gr.HTML(