hadadrjt commited on
Commit
a543c6b
·
1 Parent(s): 6b6cce5

o4-mini: Use the latest Python version.

Browse files
Files changed (4) hide show
  1. Dockerfile +22 -0
  2. README.md +2 -3
  3. app.py +2 -1
  4. requirements.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # SPDX-FileCopyrightText: Hadad <[email protected]>
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+
6
+ # Use a specific container image for the app
7
+ FROM python:latest
8
+
9
+ # Set the main working directory inside the container
10
+ WORKDIR /app
11
+
12
+ # Copy all files into the container
13
+ COPY . .
14
+
15
+ # Install all dependencies
16
+ RUN pip install -r requirements.txt
17
+
18
+ # Open the port so the app can be accessed
19
+ EXPOSE 7860
20
+
21
+ # Start the app
22
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -5,9 +5,8 @@ license: apache-2.0
5
  emoji: ⚡
6
  colorFrom: purple
7
  colorTo: green
8
- sdk: gradio
9
- sdk_version: 5.44.0
10
- app_file: app.py
11
  pinned: false
12
  # Used to promote this Hugging Face Space
13
  models:
 
5
  emoji: ⚡
6
  colorFrom: purple
7
  colorTo: green
8
+ sdk: docker
9
+ app_port: 7860
 
10
  pinned: false
11
  # Used to promote this Hugging Face Space
12
  models:
app.py CHANGED
@@ -38,5 +38,6 @@ gr.load_chat(
38
  cache_examples=False, # Ensure responses always fresh
39
  show_api=False # Disable Gradio API
40
  ).launch(
41
- max_file_size="1mb" # Max image upload size limit
 
42
  ) # Start the app
 
38
  cache_examples=False, # Ensure responses always fresh
39
  show_api=False # Disable Gradio API
40
  ).launch(
41
+ max_file_size="1mb", # Max image upload size limit
42
+ server_name="0.0.0.0" # Listen on all network interfaces
43
  ) # Start the app
requirements.txt CHANGED
@@ -1 +1,2 @@
 
1
  openai
 
1
+ gradio[oauth,mcp]
2
  openai