shlomoc commited on
Commit
d69da6b
1 Parent(s): 12fbcbb

update gradio theme

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -66,6 +66,8 @@ article = "Created based on [09. PyTorch Model Deployment](https://www.learnpyto
66
  # Create examples list from "examples/" directory
67
  example_list = [["examples/" + example] for example in os.listdir("examples")]
68
 
 
 
69
  # Create the Gradio demo
70
  demo = gr.Interface(fn=predict, # mapping function from input to output
71
  inputs=gr.Image(type="pil"), # what are the inputs?
@@ -76,6 +78,7 @@ demo = gr.Interface(fn=predict, # mapping function from input to output
76
  examples=example_list,
77
  title=title,
78
  description=description,
 
79
  article=article)
80
 
81
  # Launch the demo!
 
66
  # Create examples list from "examples/" directory
67
  example_list = [["examples/" + example] for example in os.listdir("examples")]
68
 
69
+ theme = gr.Theme.from_hub("gstaff/xkcd")
70
+
71
  # Create the Gradio demo
72
  demo = gr.Interface(fn=predict, # mapping function from input to output
73
  inputs=gr.Image(type="pil"), # what are the inputs?
 
78
  examples=example_list,
79
  title=title,
80
  description=description,
81
+ theme=theme,
82
  article=article)
83
 
84
  # Launch the demo!