faryalnimra commited on
Commit
adabd0a
·
1 Parent(s): 4fe453b

Updated app.py with latest changes

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -159,7 +159,6 @@ def allowed_file(filename):
159
  return "." in filename and filename.rsplit(".", 1)[1].lower() in ALLOWED_EXTENSIONS
160
 
161
  # Load your model
162
- deepfake_model = load_model_from_hf("faryalnimra/DFDC-detection-model", "DFDC.pth", 2)
163
  deepfake_model.eval()
164
 
165
  # Choose the last Conv2D layer
@@ -404,5 +403,5 @@ def contact():
404
  logging.info(f"Contact form submitted successfully from email: {email}")
405
  return jsonify({'message': 'Your message has been sent successfully.'}), 200
406
 
407
- if __name__ == '__main__':
408
- app.run(debug=True)
 
159
  return "." in filename and filename.rsplit(".", 1)[1].lower() in ALLOWED_EXTENSIONS
160
 
161
  # Load your model
 
162
  deepfake_model.eval()
163
 
164
  # Choose the last Conv2D layer
 
403
  logging.info(f"Contact form submitted successfully from email: {email}")
404
  return jsonify({'message': 'Your message has been sent successfully.'}), 200
405
 
406
+ if __name__ == "__main__":
407
+ app.run(host="0.0.0.0", port=7860, debug=True)