Omnibus commited on
Commit
92cee30
·
1 Parent(s): 02b550d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,11 +36,11 @@ def aiornot0(image):
36
  label = labels[prediction]
37
 
38
  html_out = f"""
39
- <h3>Model used: <a href src='https://huggingface.co/models/{mod}'>{mod}</a><br>
40
  This image is likely: {label}<br>
41
  Probabilites<br>
42
- AI: {px[0]}<br>
43
- Real: {px[1]}"""
44
 
45
  return gr.HTML.update(html_out)
46
  def aiornot1(image):
 
36
  label = labels[prediction]
37
 
38
  html_out = f"""
39
+ <h3>Model used: <a href src='https://huggingface.co/{mod}'>{mod}</a><br>
40
  This image is likely: {label}<br>
41
  Probabilites<br>
42
+ AI: {px[0][0]}<br>
43
+ Real: {px[1][0]}"""
44
 
45
  return gr.HTML.update(html_out)
46
  def aiornot1(image):