Spaces:
Build error
Build error
kwabs22 commited on
Commit ·
3739999
1
Parent(s): 4213f50
Testing Stable LM 2 1.6B Zephyr
Browse files- Dockerfile +6 -0
- app.py +2 -1
Dockerfile
CHANGED
|
@@ -21,6 +21,12 @@ RUN cd llama.cpp/models && \
|
|
| 21 |
RUN cd llama.cpp && \
|
| 22 |
make -j
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Copy the current directory contents into the container at /usr/src/app
|
| 25 |
COPY . .
|
| 26 |
|
|
|
|
| 21 |
RUN cd llama.cpp && \
|
| 22 |
make -j
|
| 23 |
|
| 24 |
+
# Set MPLCONFIGDIR to a writable directory
|
| 25 |
+
ENV MPLCONFIGDIR /usr/src/app/matplotlib
|
| 26 |
+
|
| 27 |
+
# Make sure the directory exists and has proper permissions
|
| 28 |
+
RUN mkdir -p $MPLCONFIGDIR && chmod -R 777 $MPLCONFIGDIR
|
| 29 |
+
|
| 30 |
# Copy the current directory contents into the container at /usr/src/app
|
| 31 |
COPY . .
|
| 32 |
|
app.py
CHANGED
|
@@ -39,7 +39,8 @@ iface = gr.Interface(
|
|
| 39 |
inputs=gr.Textbox(lines=2, placeholder="Type your message here..."),
|
| 40 |
outputs="text",
|
| 41 |
title="LLaMA Chat Interface",
|
| 42 |
-
description="Enter your message and get a response from the LLaMA model."
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
iface.launch(share=True)
|
|
|
|
| 39 |
inputs=gr.Textbox(lines=2, placeholder="Type your message here..."),
|
| 40 |
outputs="text",
|
| 41 |
title="LLaMA Chat Interface",
|
| 42 |
+
description="Enter your message and get a response from the LLaMA model.",
|
| 43 |
+
flagging_dir="/usr/src/app/flagged",
|
| 44 |
)
|
| 45 |
|
| 46 |
iface.launch(share=True)
|