Gaurav Panwar commited on
Commit
6a410a0
1 Parent(s): 95af941

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import gradio as gr
2
  import tensorflow as tf
3
- from tensorflow.compat.v2.experimental import dtensor
 
 
 
 
4
 
5
  import numpy as np
6
  from PIL import Image
 
1
  import gradio as gr
2
  import tensorflow as tf
3
+ disable_eager_execution()
4
+ from tensorflow.python.ops import array_ops```
5
+
6
+ This should help you avoid the error related to `dtensor` import. Also, make sure that you have installed the required dependencies (gradio, tensorflow, numpy, pillow) in your environment or Colab notebook.
7
+
8
 
9
  import numpy as np
10
  from PIL import Image