Kitino commited on
Commit
8e954c7
·
verified ·
1 Parent(s): 11346de

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. Dockerfile +14 -0
  2. README.md +1 -3
  3. app.py +1 -1
  4. requirements.txt +1 -1
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ COPY . .
13
+
14
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -3,9 +3,7 @@ title: Amalia Chatbot Test
3
  emoji: 🤖
4
  colorFrom: green
5
  colorTo: yellow
6
- sdk: gradio
7
- sdk_version: 4.44.1
8
- app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
 
3
  emoji: 🤖
4
  colorFrom: green
5
  colorTo: yellow
6
+ sdk: docker
 
 
7
  pinned: false
8
  license: apache-2.0
9
  ---
app.py CHANGED
@@ -60,4 +60,4 @@ demo = gr.ChatInterface(
60
  )
61
 
62
  if __name__ == "__main__":
63
- demo.launch()
 
60
  )
61
 
62
  if __name__ == "__main__":
63
+ demo.launch(server_name="0.0.0.0", server_port=7860)
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- gradio==4.44.1
2
  huggingface_hub
 
1
+ gradio
2
  huggingface_hub