Spaces:
Sleeping
Sleeping
feat: remove Dockerfile and update README.md
Browse filesThe Dockerfile has been removed from the project. The README.md file has been
updated to reflect the changes, including the removal of the Dockerfile and
adjustments to the project description and tags.
- Dockerfile +0 -35
- README.md +1 -4
Dockerfile
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
# Base image with PyTorch and CUDA support
|
2 |
-
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04
|
3 |
-
|
4 |
-
# Set environment variables
|
5 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
-
ENV PYTHONDONTWRITEBYTECODE=1
|
7 |
-
ENV PYTHONUNBUFFERED=1
|
8 |
-
|
9 |
-
# Install essential packages
|
10 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
11 |
-
python3.8 \
|
12 |
-
python3-pip \
|
13 |
-
python3-venv \
|
14 |
-
git \
|
15 |
-
wget \
|
16 |
-
libgl1-mesa-glx \
|
17 |
-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
18 |
-
|
19 |
-
# Set Python aliases
|
20 |
-
RUN ln -s /usr/bin/python3.8 /usr/bin/python && \
|
21 |
-
ln -s /usr/bin/pip3 /usr/bin/pip
|
22 |
-
|
23 |
-
RUN useradd -m -u 1000 user
|
24 |
-
USER user
|
25 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
26 |
-
|
27 |
-
WORKDIR /app
|
28 |
-
|
29 |
-
COPY --chown=user ./requirements.txt requirements.txt
|
30 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
31 |
-
|
32 |
-
COPY --chown=user . /app
|
33 |
-
EXPOSE 7860
|
34 |
-
|
35 |
-
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -5,20 +5,17 @@ colorFrom: indigo
|
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
python_version: 3.10
|
8 |
-
sdk_version: 1.23.0
|
9 |
app_file: app.py
|
10 |
fullWidth: true
|
11 |
header: default
|
12 |
short_description: Generate images from text prompts with FLUX.1-dev.
|
13 |
tags:
|
14 |
- text-to-image
|
15 |
-
- AI
|
16 |
- Streamlit
|
|
|
17 |
- HuggingFace
|
18 |
pinned: true
|
19 |
-
thumbnail: https://via.placeholder.com/300?text=FLUX
|
20 |
---
|
21 |
|
22 |
-
|
23 |
# FLUX Text-to-Image Generator
|
24 |
This is a Streamlit-based application that uses FLUX.1-dev to generate high-quality images from text prompts. Designed to run seamlessly on Hugging Face Spaces.
|
|
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
python_version: 3.10
|
|
|
8 |
app_file: app.py
|
9 |
fullWidth: true
|
10 |
header: default
|
11 |
short_description: Generate images from text prompts with FLUX.1-dev.
|
12 |
tags:
|
13 |
- text-to-image
|
|
|
14 |
- Streamlit
|
15 |
+
- AI
|
16 |
- HuggingFace
|
17 |
pinned: true
|
|
|
18 |
---
|
19 |
|
|
|
20 |
# FLUX Text-to-Image Generator
|
21 |
This is a Streamlit-based application that uses FLUX.1-dev to generate high-quality images from text prompts. Designed to run seamlessly on Hugging Face Spaces.
|