Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
model = torch.hub.load('pytorch/vision:v0.10.0', 'resnet18', pretrained = True).eval()
|
| 7 |
-
response =
|
| 8 |
labels = response.text.split("\n")
|
| 9 |
|
| 10 |
def get_predictions(inp):
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
model = torch.hub.load('pytorch/vision:v0.10.0', 'resnet18', pretrained = True).eval()
|
| 7 |
+
response = requests.get("https://git.io/JJkYN")
|
| 8 |
labels = response.text.split("\n")
|
| 9 |
|
| 10 |
def get_predictions(inp):
|