drakosfire commited on
Commit
5794b1c
1 Parent(s): 79c5e02

updated app.py flask app launch to point to host 0.0.0.0 and port 7860 to match huggingface, hoping this resolves CORS issue

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,5 +67,5 @@ def generate_image():
67
  except Exception as e:
68
  return jsonify({'error': str(e)}), 500
69
 
70
- if __name__ == '__main__':
71
- app.run(debug=True)
 
67
  except Exception as e:
68
  return jsonify({'error': str(e)}), 500
69
 
70
+ if __name__ == "__main__":
71
+ app.run(host="0.0.0.0", port=7860)