SharmilNK commited on
Commit
4e1c1fe
Β·
verified Β·
1 Parent(s): 851ec11

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -3
README.md CHANGED
@@ -3,7 +3,7 @@ title: My Streamlit Demo
3
  emoji: πŸš€
4
  colorFrom: red
5
  colorTo: red
6
- sdk: docker
7
  app_port: 8501
8
  tags:
9
  - streamlit
@@ -34,6 +34,11 @@ The app also gives **practical suggestions** (e.g., bring a jacket or umbrella)
34
  - πŸ”” Personalized suggestion with an icon
35
  - Clean layout: image on the left, advice & details on the right
36
  ---
 
 
 
 
 
37
  ## πŸš€ Demo
38
 
39
  > Deployed on [Hugging Face Spaces] https://huggingface.co/spaces/SharmilNK/my-streamlit-demo
@@ -66,8 +71,34 @@ Assignment/
66
  3. Create a .env file
67
  Inside Assignment/, create a file called .env and add your API key:
68
  OPENWEATHER_API_KEY=your_api_key_here
69
- 4. Run the Streamlit app
 
 
70
  streamlit run app.py
71
  5. Deploy to Hugging Face Spaces
72
  6. Go to your Space's Settings tab
73
- Use "Secrets" to securely store your API key
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  emoji: πŸš€
4
  colorFrom: red
5
  colorTo: red
6
+ sdk: streamlit
7
  app_port: 8501
8
  tags:
9
  - streamlit
 
34
  - πŸ”” Personalized suggestion with an icon
35
  - Clean layout: image on the left, advice & details on the right
36
  ---
37
+
38
+ ## πŸ§ͺ Python Version
39
+
40
+ This app was developed using: Python 3.10
41
+
42
  ## πŸš€ Demo
43
 
44
  > Deployed on [Hugging Face Spaces] https://huggingface.co/spaces/SharmilNK/my-streamlit-demo
 
71
  3. Create a .env file
72
  Inside Assignment/, create a file called .env and add your API key:
73
  OPENWEATHER_API_KEY=your_api_key_here
74
+ 4. Install dependencies
75
+ pip install -r requirements.txt
76
+ 5. Run the Streamlit app
77
  streamlit run app.py
78
  5. Deploy to Hugging Face Spaces
79
  6. Go to your Space's Settings tab
80
+ Use "Secrets" to securely store your API key
81
+
82
+
83
+ ### 2.Run on Hugging Face Spaces
84
+ 1. Upload the following files:
85
+
86
+ main.py
87
+ requirements.txt
88
+ .streamlit/config.toml
89
+ images/ folder (with weather icons)
90
+ README.md
91
+
92
+ 2. Set your API key:
93
+
94
+ Go to your Space β†’ Settings β†’ Secrets
95
+ Add a key like:
96
+ OPENWEATHER_API_KEY = your_key_here
97
+
98
+ The app will automatically reload and work!
99
+
100
+
101
+ πŸ™ Acknowledgements
102
+ OpenWeatherMap API
103
+ Streamlit
104
+ Hugging Face Spaces