Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,8 @@ import numpy as np
|
|
5 |
import tensorflow as tf
|
6 |
import tensorflow_hub as hub
|
7 |
import matplotlib.pyplot as plt
|
|
|
|
|
8 |
os.environ["TFHUB_DOWNLOAD_PROGRESS"] = "True"
|
9 |
|
10 |
os.system("wget https://user-images.githubusercontent.com/12981474/40157448-eff91f06-5953-11e8-9a37-f6b5693fa03f.png -O original.png")
|
@@ -42,7 +44,7 @@ def plot_image(image):
|
|
42 |
return image
|
43 |
|
44 |
model = hub.load(SAVED_MODEL_PATH)
|
45 |
-
def inference(img)
|
46 |
hr_image = preprocess_image(img)
|
47 |
start = time.time()
|
48 |
fake_image = model(hr_image)
|
|
|
5 |
import tensorflow as tf
|
6 |
import tensorflow_hub as hub
|
7 |
import matplotlib.pyplot as plt
|
8 |
+
import gradio as gr
|
9 |
+
|
10 |
os.environ["TFHUB_DOWNLOAD_PROGRESS"] = "True"
|
11 |
|
12 |
os.system("wget https://user-images.githubusercontent.com/12981474/40157448-eff91f06-5953-11e8-9a37-f6b5693fa03f.png -O original.png")
|
|
|
44 |
return image
|
45 |
|
46 |
model = hub.load(SAVED_MODEL_PATH)
|
47 |
+
def inference(img):
|
48 |
hr_image = preprocess_image(img)
|
49 |
start = time.time()
|
50 |
fake_image = model(hr_image)
|