D3V1L1810 commited on
Commit
30b6c41
·
verified ·
1 Parent(s): 0e5e2ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def main(params):
81
  if np.isnan(avg_prediction):
82
  raise ValueError("Average prediction is NaN, indicating an issue with the predictions.")
83
 
84
- result = 'Real' if avg_prediction > 0.86 else 'Deepfake'
85
  confidence = float(avg_prediction) * 100 # Convert numpy float to Python float and scale
86
  print(result,float("{:.2f}".format(confidence))*100)
87
  # Prepare the result as a JSON response
 
81
  if np.isnan(avg_prediction):
82
  raise ValueError("Average prediction is NaN, indicating an issue with the predictions.")
83
 
84
+ result = 'Deepfake' if avg_prediction > 0.86 else 'Real'
85
  confidence = float(avg_prediction) * 100 # Convert numpy float to Python float and scale
86
  print(result,float("{:.2f}".format(confidence))*100)
87
  # Prepare the result as a JSON response