emmjab commited on
Commit
0ddebba
·
1 Parent(s): 2a709e2

getting rid of apparently deprecated gradio args

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -17,15 +17,17 @@ title = "Cloud Classifier"
17
  description = "A cloud classifier trained on resnet18 and ~300 clouds from duck duck go with fastai. Created as a Lesson 2 assignment in the Practical Deep Learning course."
18
  # article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
19
  examples = ['lenticular.jpg', 'kelvin-helmholtz.jpg', 'mammatus.jpg']
20
- interpretation='default'
21
- enable_queue=True
 
 
22
 
23
  # this is apparently a fix for current gradio
24
  inputs=gr.Image(type="pil")
25
  outputs=gr.Label(num_top_classes=3)
26
 
27
  # i just separated this out into two lines the way the example has instead of the way the tutorial suggested
28
- cloud_inference_app = gr.Interface(fn=predict,inputs=inputs,outputs=outputs,title=title,description=description,examples=examples,interpretation=interpretation,enable_queue=enable_queue)
29
  cloud_inference_app.launch()
30
 
31
 
 
17
  description = "A cloud classifier trained on resnet18 and ~300 clouds from duck duck go with fastai. Created as a Lesson 2 assignment in the Practical Deep Learning course."
18
  # article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
19
  examples = ['lenticular.jpg', 'kelvin-helmholtz.jpg', 'mammatus.jpg']
20
+
21
+ # these args are apparently outdated; my app is not loading on hf with them
22
+ #interpretation='default'
23
+ #enable_queue=True
24
 
25
  # this is apparently a fix for current gradio
26
  inputs=gr.Image(type="pil")
27
  outputs=gr.Label(num_top_classes=3)
28
 
29
  # i just separated this out into two lines the way the example has instead of the way the tutorial suggested
30
+ cloud_inference_app = gr.Interface(fn=predict,inputs=inputs,outputs=outputs,title=title,description=description,examples=examples)
31
  cloud_inference_app.launch()
32
 
33