Spaces:
Runtime error
Runtime error
Upload 3 files
Browse files- Dockerfile +4 -3
- app.py +1 -1
- requirements.txt +2 -2
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
-
FROM python:3.
|
| 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
|
| 11 |
-
RUN mkdir -p /app/.
|
|
|
|
| 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.
|
| 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
|
| 2 |
-
huggingface_hub
|
| 3 |
requests
|
| 4 |
langchain-groq
|
| 5 |
langchain-openai
|
|
|
|
| 1 |
+
gradio
|
| 2 |
+
huggingface_hub
|
| 3 |
requests
|
| 4 |
langchain-groq
|
| 5 |
langchain-openai
|