grobram1 commited on
Commit
4de2db6
·
verified ·
1 Parent(s): 2adf960

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import gradio as gr
2
  import tensorflow as tf
3
  from PIL import Image
@@ -25,7 +28,7 @@ def predict(image):
25
  # Gradio-Interface erstellen
26
  iface = gr.Interface(
27
  fn=predict,
28
- inputs=gr.Image(shape=(64, 64)),
29
  outputs=gr.Label(),
30
  description="Pokémon Classifier"
31
  )
 
1
+ import os
2
+ os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
3
+
4
  import gradio as gr
5
  import tensorflow as tf
6
  from PIL import Image
 
28
  # Gradio-Interface erstellen
29
  iface = gr.Interface(
30
  fn=predict,
31
+ inputs=gr.Image(), # Keine shape-Parameter hier
32
  outputs=gr.Label(),
33
  description="Pokémon Classifier"
34
  )