Ansaribinhyder commited on
Commit
3f33740
·
1 Parent(s): b5dce90

Updated index and main

Browse files
Files changed (4) hide show
  1. Dockerfile +14 -4
  2. main.py +2 -2
  3. static/css/styles.css +1 -0
  4. templates/index.html +20 -17
Dockerfile CHANGED
@@ -1,6 +1,4 @@
1
- # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
- # you will also find guides on how best to write your Dockerfile
3
-
4
  FROM python:3.9
5
 
6
  # The two following lines are requirements for the Dev Mode to be functional
@@ -8,8 +6,20 @@ FROM python:3.9
8
  RUN useradd -m -u 1000 user
9
  WORKDIR /app
10
 
 
11
  COPY --chown=user ./requirements.txt requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
 
 
14
  COPY --chown=user . /app
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
 
 
2
  FROM python:3.9
3
 
4
  # The two following lines are requirements for the Dev Mode to be functional
 
6
  RUN useradd -m -u 1000 user
7
  WORKDIR /app
8
 
9
+ # Copy requirements.txt and install dependencies
10
  COPY --chown=user ./requirements.txt requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
+ # Copy the entire application to the working directory
14
  COPY --chown=user . /app
15
+
16
+ # Set the environment variable for Flask
17
+ ENV FLASK_APP=main.py
18
+ ENV FLASK_RUN_HOST=0.0.0.0
19
+ ENV FLASK_RUN_PORT=7860
20
+
21
+ # Expose the port Flask will run on
22
+ EXPOSE 7860
23
+
24
+ # Command to run the Flask app
25
+ CMD ["flask", "run"]
main.py CHANGED
@@ -14,5 +14,5 @@ def get_all_posts():
14
  return render_template("index.html")
15
 
16
 
17
- # if __name__ == "__main__":
18
- # app.run(debug=False,host='0.0.0.0',port=8190)
 
14
  return render_template("index.html")
15
 
16
 
17
+ if __name__ == "__main__":
18
+ app.run(debug=False,host=host_name_ipaddress,port=8190)
static/css/styles.css CHANGED
@@ -53,6 +53,7 @@ h1,h2,h3,h4,h5,h6{
53
  .nav-item
54
  {
55
  padding: 0 20px;
 
56
 
57
  }
58
 
 
53
  .nav-item
54
  {
55
  padding: 0 20px;
56
+ color: black;
57
 
58
  }
59
 
templates/index.html CHANGED
@@ -138,13 +138,13 @@
138
 
139
  <!-- Press -->
140
 
141
- <section id="press">
142
  <img class="press-image" src="static/assets/images/techcrunch.png" alt="tc-logo">
143
  <img class="press-image" src="static/assets/images/tnw.png" alt="tnw-logo">
144
  <img class="press-image" src="static/assets/images/bizinsider.png" alt="biz-insider-logo">
145
  <img class="press-image" src="static/assets/images/mashable.png" alt="mashable-logo">
146
 
147
- </section>
148
 
149
 
150
  <!-- Pricing -->
@@ -162,12 +162,13 @@
162
  <h3 class="pricing-text">COCONUT OIL</h3>
163
  </div>
164
  <div class="card-body">
165
- <h1 class="big-heading">₹220 / Liter</h1>
166
- <p>Determined by Components per layer</p>
167
- <p>Determined by Components Per Design</p>
168
- <p>Less Complex Design</p>
169
- <button type="button" class="btn btn-lg btn-block btn-outline-dark">Buy Now</button>
170
- </div>
 
171
  </div>
172
  </div>
173
 
@@ -177,11 +178,12 @@
177
  <h3 class="pricing-text">GROUNDNUT OIL</h3>
178
  </div>
179
  <div class="card-body">
180
- <h1 class="big-heading">₹320 / Liter</h1>
181
- <p>Unlimited Components</p>
182
- <p>Less-Complex design</p>
183
- <p>Determined by Layers</p>
184
- <button type="button" class="btn btn-lg btn-block btn-dark">Buy Now</button>
 
185
  </div>
186
  </div>
187
  </div>
@@ -194,11 +196,12 @@
194
  </div>
195
  <div class="card-body">
196
  <h1 class="big-heading">₹400 / Liter</h1>
197
- <p>Unlimited Components</p>
198
- <p>Complex design</p>
199
  <p>Unlimited layers</p>
200
- <p>Determined by Components and layers</p>
201
- <button type="button" class="btn btn-lg btn-block btn-dark">Buy now</button>
 
202
  </div>
203
  </div>
204
  </div>
 
138
 
139
  <!-- Press -->
140
 
141
+ <!-- <section id="press">
142
  <img class="press-image" src="static/assets/images/techcrunch.png" alt="tc-logo">
143
  <img class="press-image" src="static/assets/images/tnw.png" alt="tnw-logo">
144
  <img class="press-image" src="static/assets/images/bizinsider.png" alt="biz-insider-logo">
145
  <img class="press-image" src="static/assets/images/mashable.png" alt="mashable-logo">
146
 
147
+ </section> -->
148
 
149
 
150
  <!-- Pricing -->
 
162
  <h3 class="pricing-text">COCONUT OIL</h3>
163
  </div>
164
  <div class="card-body">
165
+ <h1 class="big-heading">₹260 / Liter</h1>
166
+ <p>Extracted from raw Coconut</p>
167
+ <p>Filtered Naturally</p>
168
+ <p>Packed Neatly and Served Freshly</p>
169
+ <!-- <button type="button" class="btn btn-lg btn-block btn-outline-dark" href="https://wa.me/+9181484 82568">Buy Now</button> -->
170
+ <a href="https://wa.me/+918148482568" class="btn btn-lg btn-block btn-outline-dark" target="_blank">Buy Now</a>
171
+ </div>
172
  </div>
173
  </div>
174
 
 
178
  <h3 class="pricing-text">GROUNDNUT OIL</h3>
179
  </div>
180
  <div class="card-body">
181
+ <h1 class="big-heading">₹240 / Liter</h1>
182
+ <p>Extracted from raw GROUNDNUT</p>
183
+ <p>Filtered Naturally</p>
184
+ <p>Packed Neatly and Served Freshly</p>
185
+ <!-- <button type="button" class="btn btn-lg btn-block btn-dark">Buy Now</button> -->
186
+ <a href="https://wa.me/+918148482568" class="btn btn-lg btn-block btn-outline-dark" target="_blank">Buy Now</a>
187
  </div>
188
  </div>
189
  </div>
 
196
  </div>
197
  <div class="card-body">
198
  <h1 class="big-heading">₹400 / Liter</h1>
199
+ <p>Extracted from raw Seasame</p>
200
+ <p>Filtered Naturally</p>
201
  <p>Unlimited layers</p>
202
+ <p>Packed Neatly and Served Freshly</p>
203
+ <!-- <button type="button" class="btn btn-lg btn-block btn-dark">Buy now</button> -->
204
+ <a href="https://wa.me/+918148482568" class="btn btn-lg btn-block btn-outline-dark" target="_blank">Buy Now</a>
205
  </div>
206
  </div>
207
  </div>