GbrlOl commited on
Commit
faa9b86
verified
1 Parent(s): bdc5113

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -131,12 +131,11 @@ def predict(im):
131
  # return im["composite"]
132
  return im["composite"], predicted
133
 
134
-
135
- with gr.Blocks() as demo:
136
  descripcion = """
137
  # MNIST
138
  El siguiente sistema permite predecir d铆gitos del 0 al 9, utilizando el Sketchpad de gradio. Se entren贸 una CNN con el dataset MNIST.
139
- * By Gabriel Olmos Leiva
140
  """.strip()
141
  gr.Markdown(descripcion)
142
  with gr.Row():
@@ -150,6 +149,6 @@ with gr.Blocks() as demo:
150
  # im.change(predict, outputs=im_preview, inputs=im, show_progress="full", )
151
  # im.change(predict, outputs=prediction_text, inputs=im, show_progress="full", )
152
  im.change(predict, outputs=[im_preview, prediction_text], inputs=im, show_progress="full", )
153
-
154
 
155
  demo.launch(share=True, debug=False)
 
131
  # return im["composite"]
132
  return im["composite"], predicted
133
 
134
+ theme = gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.red)
135
+ with gr.Blocks(theme=theme) as demo:
136
  descripcion = """
137
  # MNIST
138
  El siguiente sistema permite predecir d铆gitos del 0 al 9, utilizando el Sketchpad de gradio. Se entren贸 una CNN con el dataset MNIST.
 
139
  """.strip()
140
  gr.Markdown(descripcion)
141
  with gr.Row():
 
149
  # im.change(predict, outputs=im_preview, inputs=im, show_progress="full", )
150
  # im.change(predict, outputs=prediction_text, inputs=im, show_progress="full", )
151
  im.change(predict, outputs=[im_preview, prediction_text], inputs=im, show_progress="full", )
152
+ gr.Markdown("> Gabriel Olmos Leiva")
153
 
154
  demo.launch(share=True, debug=False)