xccccccc commited on
Commit
c72beb6
·
verified ·
1 Parent(s): 38b24b8

Upload 4 files

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. Dockerfile +41 -0
  3. README.md +4 -4
  4. launch.sh +21 -0
  5. server +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ server filter=lfs diff=lfs merge=lfs -text
Dockerfile ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM golang:1.21-alpine AS builder
2
+
3
+ WORKDIR /app
4
+ RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git .
5
+ RUN make build-linux
6
+
7
+ FROM ubuntu:latest
8
+
9
+ WORKDIR /app
10
+ COPY server .
11
+ COPY --from=builder /app/you-helper.zip ./you-helper.zip
12
+
13
+ RUN apt update \
14
+ && apt-get install -y curl unzip wget gnupg2
15
+
16
+ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
17
+ && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
18
+ && apt-get update \
19
+ && apt-get install -y google-chrome-stable
20
+
21
+ # Install Edge (commented out for now)
22
+ #RUN wget -q -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg >/dev/null \
23
+ # && echo "deb https://packages.microsoft.com/repos/edge stable main" >> /etc/apt/sources.list.d/microsoft-edge.list \
24
+ # && apt-get update -qqy \
25
+ # && apt-get -qqy --no-install-recommends install microsoft-edge-stable
26
+ RUN chmod +x server
27
+
28
+ RUN unzip ./you-helper.zip \
29
+ && mkdir log tmp \
30
+ && chmod 777 log \
31
+ && chmod 777 tmp \
32
+ && chmod +x server \
33
+ && chmod +x bin/linux/helper \
34
+ && chmod -R 777 /app
35
+
36
+ COPY launch.sh /app/launch.sh
37
+ RUN chmod +x /app/launch.sh
38
+
39
+ CMD ["/app/launch.sh"]
40
+
41
+ ENTRYPOINT ["sh", "-c"]
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- title: AX01
3
- emoji: 📈
4
- colorFrom: green
5
- colorTo: indigo
6
  sdk: docker
7
  pinned: false
8
  ---
 
1
  ---
2
+ title: T1
3
+ emoji: 👁
4
+ colorFrom: purple
5
+ colorTo: red
6
  sdk: docker
7
  pinned: false
8
  ---
launch.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ CONFIG_URL="$fetch"
4
+
5
+ echo "Downloading config.yaml from $CONFIG_URL..."
6
+ curl -o /app/config.yaml $CONFIG_URL
7
+
8
+ if [ $? -ne 0 ]; then
9
+ echo "Failed to download config.yaml"
10
+ exit 1
11
+ fi
12
+
13
+ echo "config.yaml downloaded successfully"
14
+
15
+ # Set any required environment variables (optional)
16
+ export ARG="--port 7860"
17
+
18
+ # Start the server
19
+ exec ./server ${ARG}
20
+
21
+
server ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc092f3044f4652a9828d6bc513bea093a47093c518ed44afc186285a49b717f
3
+ size 41619497