Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
|
|
3 |
import torch
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
|
|
|
6 |
def inference(repo_id, model_name, img):
|
7 |
model_path = hf_hub_download(repo_id=repo_id, filename=model_name)
|
8 |
model = torch.jit.load(model_path, map_location='cpu')
|
|
|
3 |
import torch
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
|
6 |
+
|
7 |
def inference(repo_id, model_name, img):
|
8 |
model_path = hf_hub_download(repo_id=repo_id, filename=model_name)
|
9 |
model = torch.jit.load(model_path, map_location='cpu')
|