GIGAParviz commited on
Commit
95d3f9a
·
verified ·
1 Parent(s): b128f27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- # import gradio as gr
2
  import random
3
  import os
4
  from typing import Tuple , Dict
@@ -114,7 +114,7 @@ def predict(img= None , link:str = None) -> str:
114
  img = Image.fromarray(img)
115
  img = transform(img)
116
  img = img.unsqueeze(0)
117
- answer += str((torch.argmax(model(img.to(device)))).cpu().numpy())
118
 
119
  return answer , imgss
120
 
 
1
+ import gradio as gr
2
  import random
3
  import os
4
  from typing import Tuple , Dict
 
114
  img = Image.fromarray(img)
115
  img = transform(img)
116
  img = img.unsqueeze(0)
117
+ answer += str((torch.argmax(model(img.to(device)))).numpy())
118
 
119
  return answer , imgss
120