Sumkh commited on
Commit
6d43bdb
·
verified ·
1 Parent(s): 509621c

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +4 -3
  2. app.py +1 -1
  3. requirements.txt +2 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
 
4
  # Install system dependencies
5
  RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
@@ -7,8 +7,9 @@ RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
7
  # Set working directory
8
  WORKDIR /app
9
 
10
- # Create a writable cache directory and set environment variable
11
- RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
 
12
  ENV HF_HOME=/app/.cache
13
  ENV USER_AGENT="my-gradio-app"
14
 
 
1
  # Use an official Python runtime as a parent image
2
+ FROM python:3.11-slim
3
 
4
  # Install system dependencies
5
  RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
 
7
  # Set working directory
8
  WORKDIR /app
9
 
10
+ # Create a writable config directory for matplotlib and set environment variable
11
+ RUN mkdir -p /app/.config/matplotlib && chmod -R 777 /app/.config
12
+ ENV MPLCONFIGDIR=/app/.config/matplotlib
13
  ENV HF_HOME=/app/.cache
14
  ENV USER_AGENT="my-gradio-app"
15
 
app.py CHANGED
@@ -876,7 +876,7 @@ graph = graph_builder.compile(checkpointer=checkpointer, store=in_memory_store)
876
  import gradio as gr
877
  from gradio import ChatMessage
878
 
879
- system_prompt = "You are a helpful Assistant. Always use the tools {tools}."
880
 
881
  ########################################
882
  # Upload_documents
 
876
  import gradio as gr
877
  from gradio import ChatMessage
878
 
879
+ system_prompt = "You are a helpful Assistant. You will always use the tools available to you from {tools} to address user queries."
880
 
881
  ########################################
882
  # Upload_documents
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
- gradio==3.30.0
2
- huggingface_hub>=0.15.0
3
  requests
4
  langchain-groq
5
  langchain-openai
 
1
+ gradio
2
+ huggingface_hub
3
  requests
4
  langchain-groq
5
  langchain-openai