HuggingFace Image Generation

返回项目列表
HuggingFace Image Generation
已发布
Python / HuggingFace / Gradio

实现基于 HuggingFace API 的图像生成服务

HuggingFace Image Generation

本项目为福州大学 2026 年软件工程课程的项目,用于实现基于 HuggingFace API 的图像生成服务。

本项目仅为学习研究使用,不涉及任何商业用途,也不建议在生产环境中使用。

Structure#

.
├── .gitignore
├── .python-version
├── README.md
├── README_EN.md
├── LICENSE
├── src
│ └── hf_image_gen_rt265
│ └── __init__.py # Export modules
│ └── main.py # Main entry point & Gradio interface
│ └── service.py # Image generation service
├── .env.example
├── pyproject.toml
└── uv.lock

Development#

Terminal window
# Install
uv sync
# OR python install -e .
# Starting service
hf-image-gen-rt265
# Lint
ruff check
# Formatter
ruff format --check .
# Type check
ty check

Tech Stack#

  • Python 3.13
  • uv
  • Gradio
  • ty
  • Ruff

Gradio 是一个开源的 Python 软件包,允许为机器学习模型、API 或任何任意的 Python 函数快速构建演示或网页应用。

Credits & License#

本项目参考了 155TuT 的项目,但没有使用其专有代码。

本项目采用 MIT License 授权。

Copyright (c) 2026 rt265

Profile Image of the Author
Watermelonabc
追寻各色世界
🎉 抓到你啦
欢迎来到 Watermelonabc 的 Blog!这个博客主要是技术向的内容,现在也有生活元素了 OwO
分类
文章目录