acecalisto3 commited on
Commit
8058749
1 Parent(s): 19a25f3

Upload 3 files

Browse files
Files changed (3) hide show
  1. dockerfile.yml +22 -0
  2. package.json +14 -0
  3. requirements.txt +4 -0
dockerfile.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM python:3.9-slim-buster
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements.txt and install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy package.json and install npm packages
12
+ COPY package.json .
13
+ RUN apt-get update && apt-get install -y npm && npm install
14
+
15
+ # Copy the rest of the files
16
+ COPY . .
17
+
18
+ # Expose the port
19
+ EXPOSE 3000
20
+
21
+ # Start the application
22
+ CMD ["npm", "start"]
package.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "huggingface-spaces-app",
3
+ "version": "1.0.0",
4
+ "description": "Containerized Hugging Face Spaces app using RAG model",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "author": "Your Name",
10
+ "dependencies": {
11
+ "express": "^4.17.1",
12
+ "gradio": "^2.2.6"
13
+ }
14
+ }
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ gradio==2.2.6
2
+ torch==1.9.1
3
+ transformers==4.11.3
4
+ google_drive_downloader==0.4.6