hellorahulk commited on
Commit
3aa9da6
·
1 Parent(s): 5c197b6

Fix Gradio compatibility issues

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ with gr.Blocks(title=TITLE, theme=gr.themes.Soft()) as iface:
96
  file_input = gr.File(
97
  label="Upload Document",
98
  file_types=[".pdf", ".docx", ".txt", ".html", ".md"],
99
- type="file"
100
  )
101
  submit_btn = gr.Button("Process Document", variant="primary")
102
 
 
96
  file_input = gr.File(
97
  label="Upload Document",
98
  file_types=[".pdf", ".docx", ".txt", ".html", ".md"],
99
+ type="binary"
100
  )
101
  submit_btn = gr.Button("Process Document", variant="primary")
102
 
requirements.txt CHANGED
@@ -5,7 +5,7 @@ python-docx>=0.8.11
5
  PyPDF2>=3.0.0
6
  beautifulsoup4>=4.12.0
7
  lxml>=4.9.0
8
- gradio>=4.0.0
9
  pandas>=1.5.0
10
  huggingface-hub>=0.19.0
11
  python-magic-bin>=0.4.14; platform_system == "Windows"
 
5
  PyPDF2>=3.0.0
6
  beautifulsoup4>=4.12.0
7
  lxml>=4.9.0
8
+ gradio>=4.44.1
9
  pandas>=1.5.0
10
  huggingface-hub>=0.19.0
11
  python-magic-bin>=0.4.14; platform_system == "Windows"