Athspi commited on
Commit
61bb0ed
·
verified ·
1 Parent(s): 40f59fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -14,6 +14,8 @@ genai.configure(api_key=os.environ.get("GEMINI_API_KEY"))
14
  model = genai.GenerativeModel('gemini-1.5-flash') # Or another suitable model
15
 
16
  # Initialize the Flask app
 
 
17
 
18
  # Configure the upload folder
19
  UPLOAD_FOLDER = 'uploads'
@@ -235,4 +237,4 @@ def download_project():
235
 
236
 
237
  if __name__ == '__main__':
238
- app.run(host="0.0.0.0", port=7860)
 
14
  model = genai.GenerativeModel('gemini-1.5-flash') # Or another suitable model
15
 
16
  # Initialize the Flask app
17
+ app = Flask(__name__)
18
+ app.secret_key = 'your_very_secret_key' # Change this to a random secret key
19
 
20
  # Configure the upload folder
21
  UPLOAD_FOLDER = 'uploads'
 
237
 
238
 
239
  if __name__ == '__main__':
240
+ app.run(debug=True, port=5001)