VatsalPatel18 commited on
Commit
4eae8e3
·
verified ·
1 Parent(s): 200caa8

Rename app.py to main.py

Browse files
Files changed (1) hide show
  1. app.py → main.py +3 -4
app.py → main.py RENAMED
@@ -7,7 +7,7 @@ from functions import get_weather_info, get_forecast, shutdown
7
  from huggingface_hub import hf_hub_download
8
 
9
  # Set custom cache directory
10
- cache_dir = "/app/hf_cache"
11
  os.makedirs(cache_dir, exist_ok=True)
12
 
13
  # Download the model directly in the app
@@ -90,12 +90,11 @@ def main():
90
  demo.launch(
91
  server_name="0.0.0.0",
92
  server_port=7860,
93
- ssl_keyfile="/app/certificates/selfsigned.key",
94
- ssl_certfile="/app/certificates/selfsigned.crt",
95
  ssl_verify=False, # Disable SSL verification for development
96
  share=True,
97
  )
98
 
99
  if __name__ == "__main__":
100
  main()
101
-
 
7
  from huggingface_hub import hf_hub_download
8
 
9
  # Set custom cache directory
10
+ cache_dir = "/home/user/app/hf_cache"
11
  os.makedirs(cache_dir, exist_ok=True)
12
 
13
  # Download the model directly in the app
 
90
  demo.launch(
91
  server_name="0.0.0.0",
92
  server_port=7860,
93
+ ssl_keyfile="/home/user/app/certificates/selfsigned.key",
94
+ ssl_certfile="/home/user/app/certificates/selfsigned.crt",
95
  ssl_verify=False, # Disable SSL verification for development
96
  share=True,
97
  )
98
 
99
  if __name__ == "__main__":
100
  main()