SergioI1991 commited on
Commit
b638759
·
verified ·
1 Parent(s): 19211b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -28,7 +28,6 @@ def predecir(rx_image):
28
  other_class = CLASS_NAMES[other_index]
29
  other_confidence = score[other_index] * 100
30
 
31
- # Caja grande sin scroll
32
  resultado_texto = f"""
33
  <div style='
34
  font-size:36px;
@@ -50,16 +49,15 @@ def predecir(rx_image):
50
 
51
  return resultado_texto
52
 
53
- # Interfaz Gradio
54
  with gr.Blocks(theme="default") as demo:
55
- gr.Markdown("## Clasificador de Radiografías Dentales 🦷", elem_id="titulo")
56
 
57
  with gr.Row():
58
  with gr.Column():
59
  rx_input = gr.Image(
60
  type="numpy",
61
  label="Sube tu RX",
62
- source="upload"
63
  )
64
  boton = gr.Button("Analizar")
65
  with gr.Column():
 
28
  other_class = CLASS_NAMES[other_index]
29
  other_confidence = score[other_index] * 100
30
 
 
31
  resultado_texto = f"""
32
  <div style='
33
  font-size:36px;
 
49
 
50
  return resultado_texto
51
 
 
52
  with gr.Blocks(theme="default") as demo:
53
+ gr.Markdown("## Clasificador de Radiografías Dentales 🦷")
54
 
55
  with gr.Row():
56
  with gr.Column():
57
  rx_input = gr.Image(
58
  type="numpy",
59
  label="Sube tu RX",
60
+ tool="upload" # Compatible con versiones antiguas
61
  )
62
  boton = gr.Button("Analizar")
63
  with gr.Column():