n0v33n commited on
Commit
7f4d90c
·
1 Parent(s): e789681
Files changed (2) hide show
  1. Dockerfile +23 -1
  2. README.md +5 -4
Dockerfile CHANGED
@@ -1,5 +1,13 @@
 
1
  FROM python:3.12-slim
 
 
2
  WORKDIR /app
 
 
 
 
 
3
  RUN apt-get update && apt-get install -y \
4
  gcc \
5
  g++ \
@@ -7,7 +15,21 @@ RUN apt-get update && apt-get install -y \
7
  libssl-dev \
8
  python3-dev \
9
  && rm -rf /var/lib/apt/lists/*
10
- COPY app.py .
 
 
 
 
 
 
 
11
  RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
12
  EXPOSE 7860
 
 
13
  CMD ["python", "app.py"]
 
1
+ # Use the official Python slim image as the base image
2
  FROM python:3.12-slim
3
+
4
+ # Set the working directory in the container
5
  WORKDIR /app
6
+
7
+ # Update pip to the latest version
8
+ RUN pip install --upgrade pip
9
+
10
+ # Install build dependencies for compiling Python packages
11
  RUN apt-get update && apt-get install -y \
12
  gcc \
13
  g++ \
 
15
  libssl-dev \
16
  python3-dev \
17
  && rm -rf /var/lib/apt/lists/*
18
+
19
+ # Copy the requirements.txt file into the container
20
+ COPY requirements.txt .
21
+
22
+ # Verify that requirements.txt exists (for debugging)
23
+ RUN ls -la /app && test -f /app/requirements.txt || (echo "Error: requirements.txt not found in /app" && exit 1)
24
+
25
+ # Install Python dependencies from requirements.txt
26
  RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Copy the application code into the container
29
+ COPY . .
30
+
31
+ # Expose the port Gradio will run on (default is 7860)
32
  EXPOSE 7860
33
+
34
+ # Command to run the Gradio app
35
  CMD ["python", "app.py"]
README.md CHANGED
@@ -15,11 +15,12 @@ Usage: Mistral
15
  This is an agent created using Mistral models, designed to process climate-related documents, analyze images, perform JSON data analysis, and convert text to speech. It provides a multi-agent system for document processing, image analysis, JSON analysis, and text-to-speech functionalities, all integrated into a user-friendly Gradio interface.
16
 
17
  ## Video Demo
18
- Below is an embedded YouTube video demonstrating the Link2Doc MCP Server for the Hackathon:
 
 
 
 
19
 
20
- <div style="text-align: center; margin: 20px 0;">
21
- <iframe width="560" height="400" src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
22
- </div>
23
  ## Features
24
 
25
  - **Document Processing**: Extract structured data from climate-related PDFs using OCR capabilities.
 
15
  This is an agent created using Mistral models, designed to process climate-related documents, analyze images, perform JSON data analysis, and convert text to speech. It provides a multi-agent system for document processing, image analysis, JSON analysis, and text-to-speech functionalities, all integrated into a user-friendly Gradio interface.
16
 
17
  ## Video Demo
18
+ Below is an embedded YouTube video demonstrating the MistyClimateAgent for the Hackathon:
19
+
20
+ [![Watch the Demo Video](https://img.youtube.com/vi/b9HGT9l5bcg/0.jpg)](https://youtu.be/b9HGT9l5bcg)
21
+
22
+ Click the image or [watch the demo video on YouTube](https://youtu.be/b9HGT9l5bcg).
23
 
 
 
 
24
  ## Features
25
 
26
  - **Document Processing**: Extract structured data from climate-related PDFs using OCR capabilities.