Kieran Fraser commited on
Commit
2f9e420
1 Parent(s): 09a3643

Updating gradio

Browse files

Signed-off-by: Kieran Fraser <[email protected]>

Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +1 -3
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⚔️
4
  colorFrom: red
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.8.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: red
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 4.16.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -25,7 +25,6 @@ from art.attacks.poisoning.perturbations import insert_image
25
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
26
 
27
  css = """
28
-
29
  .custom-text {
30
  --text-md: 20px !important;
31
  --text-sm: 18px !important;
@@ -201,7 +200,6 @@ def show_params(type):
201
 
202
  head = '''<script async defer src="https://buttons.github.io/buttons.js"></script>'''
203
 
204
-
205
  # e.g. To use a local alternative theme: carbon_theme = Carbon()
206
  carbon_theme = Carbon()
207
  with gr.Blocks(css=css, head=head, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
@@ -372,4 +370,4 @@ if __name__ == "__main__":
372
  max_threads=20)'''
373
 
374
  # For deployment
375
- demo.launch(share=True, ssl_verify=False)
 
25
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
26
 
27
  css = """
 
28
  .custom-text {
29
  --text-md: 20px !important;
30
  --text-sm: 18px !important;
 
200
 
201
  head = '''<script async defer src="https://buttons.github.io/buttons.js"></script>'''
202
 
 
203
  # e.g. To use a local alternative theme: carbon_theme = Carbon()
204
  carbon_theme = Carbon()
205
  with gr.Blocks(css=css, head=head, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
 
370
  max_threads=20)'''
371
 
372
  # For deployment
373
+ demo.launch()
requirements.txt CHANGED
@@ -7,4 +7,4 @@ tensorflow==2.10.1; sys_platform != "darwin"
7
  tensorflow-macos; sys_platform == "darwin"
8
  tensorflow-metal; sys_platform == "darwin"
9
  adversarial-robustness-toolbox
10
- gradio==4.15
 
7
  tensorflow-macos; sys_platform == "darwin"
8
  tensorflow-metal; sys_platform == "darwin"
9
  adversarial-robustness-toolbox
10
+ gradio==4.16