Nihal2000 commited on
Commit
e7abb6b
Β·
1 Parent(s): 86aa5e4

Switch to Gradio SDK and fix configuration

Browse files
Files changed (4) hide show
  1. Dockerfile +0 -31
  2. README.md +4 -3
  3. app.py +1 -1
  4. packages.txt +1 -0
Dockerfile DELETED
@@ -1,31 +0,0 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- curl \
9
- ca-certificates \
10
- tesseract-ocr \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements and install Python dependencies
14
- COPY requirements.txt .
15
- RUN pip install --no-cache-dir -r requirements.txt
16
-
17
- # Copy application code
18
- COPY . .
19
-
20
- # Create data directories
21
- RUN mkdir -p /data/vector_store /data/documents /data/podcasts
22
-
23
- # Expose port (HuggingFace Spaces uses 7860)
24
- EXPOSE 7860
25
-
26
- # Set environment variables
27
- ENV GRADIO_SERVER_NAME="0.0.0.0"
28
- ENV GRADIO_SERVER_PORT=7860
29
-
30
- # Run the MCP server
31
- CMD ["python", "mcp_server.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -3,8 +3,9 @@ title: AI Digital Library Assistant
3
  emoji: πŸ“š
4
  colorFrom: blue
5
  colorTo: indigo
6
- sdk: docker
7
- app_port: 7860
 
8
  pinned: false
9
  license: mit
10
  ---
@@ -23,7 +24,7 @@ An intelligent document organization and retrieval system powered by AI.
23
 
24
  ## Setup
25
 
26
- This Space is configured to run using Docker. It requires several API keys to function fully:
27
 
28
  - `OPENAI_API_KEY`: For embeddings and LLM
29
  - `ANTHROPIC_API_KEY`: For Claude 3.5 Sonnet
 
3
  emoji: πŸ“š
4
  colorFrom: blue
5
  colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: "5.6.0"
8
+ app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
 
24
 
25
  ## Setup
26
 
27
+ This Space requires several API keys to function fully:
28
 
29
  - `OPENAI_API_KEY`: For embeddings and LLM
30
  - `ANTHROPIC_API_KEY`: For Claude 3.5 Sonnet
app.py CHANGED
@@ -1371,4 +1371,4 @@ def create_gradio_interface():
1371
 
1372
  if __name__ == "__main__":
1373
  gradio_interface = create_gradio_interface()
1374
- gradio_interface.launch(mcp_server=True)
 
1371
 
1372
  if __name__ == "__main__":
1373
  gradio_interface = create_gradio_interface()
1374
+ gradio_interface.launch()
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ tesseract-ocr