seanpedrickcase commited on
Commit
0df2a27
·
1 Parent(s): 9394293

Update to Gradio version 6

Browse files
Files changed (4) hide show
  1. README.md +1 -0
  2. app.py +3 -3
  3. requirements.txt +11 -11
  4. requirements_aws.txt +3 -3
README.md CHANGED
@@ -4,6 +4,7 @@ emoji: 🌍
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
 
7
  app_file: app.py
8
  pinned: false
9
  license: apache-2.0
 
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 6.0.2
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
app.py CHANGED
@@ -37,7 +37,7 @@ usage_logs_folder = 'usage/' + today_rev + '/' + host_name + '/'
37
  ADDRESSBASE_API_KEY = get_or_create_env_var('ADDRESSBASE_API_KEY', '')
38
 
39
  # Create the gradio interface
40
- block = gr.Blocks(theme = gr.themes.Base())
41
 
42
  with block:
43
 
@@ -161,7 +161,7 @@ print(f'The value of COGNITO_AUTH is {COGNITO_AUTH}')
161
 
162
  if __name__ == "__main__":
163
  if os.environ['COGNITO_AUTH'] == "1":
164
- block.queue().launch(show_error=True, auth=authenticate_user, max_file_size='50mb')
165
  else:
166
- block.queue().launch(show_error=True, inbrowser=True, max_file_size='50mb')
167
 
 
37
  ADDRESSBASE_API_KEY = get_or_create_env_var('ADDRESSBASE_API_KEY', '')
38
 
39
  # Create the gradio interface
40
+ block = gr.Blocks()
41
 
42
  with block:
43
 
 
161
 
162
  if __name__ == "__main__":
163
  if os.environ['COGNITO_AUTH'] == "1":
164
+ block.queue().launch(show_error=True, auth=authenticate_user, max_file_size='50mb', theme = gr.themes.Base())
165
  else:
166
+ block.queue().launch(show_error=True, inbrowser=True, max_file_size='50mb', theme = gr.themes.Base())
167
 
requirements.txt CHANGED
@@ -1,12 +1,12 @@
1
- torch==2.7.1
2
- pandas==2.2.3
3
- rapidfuzz==3.13.0
4
  recordlinkage==0.16
5
- pyap==0.3.1
6
- pytest==7.4.3
7
- pyarrow==21.0.0
8
- openpyxl==3.1.2
9
- gradio==5.34.2
10
- boto3==1.40.5
11
- polars==0.20.19
12
- numpy==1.26.4
 
1
+ torch
2
+ pandas
3
+ rapidfuzz
4
  recordlinkage==0.16
5
+ pyap
6
+ pytest
7
+ pyarrow
8
+ openpyxl
9
+ gradio==6.0.2
10
+ boto3
11
+ polars
12
+ numpy
requirements_aws.txt CHANGED
@@ -1,11 +1,11 @@
1
- pandas==2.3.0
2
  rapidfuzz==3.13.0
3
  recordlinkage==0.16
4
  pyap==0.3.1
5
  pytest==7.4.3
6
  pyarrow==21.0.0
7
  openpyxl==3.1.2
8
- gradio==5.34.2
9
  boto3==1.40.5
10
  polars==0.20.19
11
- numpy==1.26.4
 
1
+ pandas==2.3.3
2
  rapidfuzz==3.13.0
3
  recordlinkage==0.16
4
  pyap==0.3.1
5
  pytest==7.4.3
6
  pyarrow==21.0.0
7
  openpyxl==3.1.2
8
+ gradio==6.0.2
9
  boto3==1.40.5
10
  polars==0.20.19
11
+ numpy