import gradio as gr # 공지사항 예시 notices = [ "공지사항: 허깅페이스내 앱(스페이스)중 검증을 통해 최상의 앱들만 엄선. 링크 리스트를 클릭하여 사용", "이용 안내: My 스페이스에 포함시킬 수 없는 구조는 외부링크로 표시하였음. ", "My 스페이스에 포함된 소스코드를 수정할 경우는 Duplicate(다른 이름으로 변경 필수)하여 사용하기 바람" "My 스페이스에 포함된 앱(스페이스)중 유료(GPU 사용)로 활용할 필요가 있는 경우 톡방에서 의견 주세요." ] # 링크 리스트 예시 links = [ ("패션: 모델 의상 피팅, 외부 링크", "https://huggingface.co/spaces/HumanAIGC/OutfitAnyone"), ("이미지 to 립싱크 아바타 영상, 외부 링크", "https://huggingface.co/spaces/vinthony/SadTalker"), ("텍스트 to 이미지(Face fit), 외부 링크", "https://huggingface.co/spaces/multimodalart/Ip-Adapter-FaceID"), ("이미지 to 말하는 얼굴, 외부 링크", "https://huggingface.co/spaces/fffiloni/dreamtalk"), ("텍스트 to 음성생성(Whisper), My 스페이스", "https://huggingface.co/spaces/arxivgpt/OpenAI_TTS_New"), ("비디오 to 비디오(swap), 외부 링크", "https://huggingface.co/spaces/Anonymous-sub/Rerender"), ("비디오 생성기, 외부 링크", "https://huggingface.co/spaces/huggingface-projects/video-composer-gpt4"), ("비전 인식(GPT4 기반), 외부 링크", "https://huggingface.co/spaces/markllego/openai-gpt4-vision"), ("이미지 to 움직이는 영상 생성, 외부 링크", "https://huggingface.co/spaces/multimodalart/stable-video-diffusion"), ("텍스트 to 이미지(애니메이션), 외부 링크", "https://huggingface.co/spaces/guoyww/AnimateDiff"), ("음성 복합 변환 , 외부 링크", "https://huggingface.co/spaces/facebook/seamless-m4t-v2-large"), ("ID(신분증) 인식 및 분류, 외부 링크", "https://huggingface.co/spaces/FaceOnLive/ID-Document-Recognition-SDK"), ("이미지 to 모션(제스츄어) 동작, 외부 링크", "https://huggingface.co/spaces/zcxu-eric/magicanimate"), ("텍스트 to 만화 생성, 외부 링크", "https://huggingface.co/spaces/jbilcke-hf/ai-comic-factory"), ("텍스트 to 움직이는 영상 생성, 외부 링크", "https://huggingface.co/spaces/damo-vilab/modelscope-text-to-video-synthesis"), ("텍스트 to 움직이는 영상 생성, 외부 링크", "https://huggingface.co/spaces/PAIR/Text2Video-Zero"), ("텍스트 to 음악 생성, My 스페이스", "https://huggingface.co/spaces/arxivgpt/MusicGen"), ("이미지 to 3D 모델링, 외부 링크", "https://huggingface.co/spaces/flamehaze1115/Wonder3D-demo"), ("이미지 to 3D 모델링, 외부 링크", "https://huggingface.co/spaces/jiawei011/dreamgaussian"), ("이미지 to 텍스트: 이미지 인식, My 스페이스", "https://huggingface.co/spaces/fffiloni/CLIP-Interrogator-2"), ("텍스트/이미지 to 이미지 생성/변, 외부 링크", "https://huggingface.co/spaces/camenduru-com/webui"), ("노코드 개발: flowise, My 스페이스", "https://huggingface.co/spaces/seawolf2357/Flowise"), ("QR 코드 ART 생성, 외부 링크", "https://huggingface.co/spaces/huggingface-projects/QR-code-AI-art-generator"), ("텍스트 to 빠른 이미 생성, 외부 링크", "https://huggingface.co/spaces/google/sdxl"), ("텍스트 to 이미지 생성, 외부 링크", "https://huggingface.co/spaces/stabilityai/stable-diffusion"), ("이미지 업스케일(화질 개선), 외부 링크", "https://huggingface.co/spaces/sczhou/CodeFormer"), ("Face Swap(얼굴 교체), 외부 링크", "https://huggingface.co/spaces/felixrosberg/face-swap"), ("텍스트 to 빠른 이미 생성, 외부 링크", "https://huggingface.co/spaces/google/sdxl"), ] def show_notices(): # 공지사항 목록을 HTML 형식으로 변환 html_output = "" # 링크를 HTML 테이블로 변환 html_output += "" for title, url in links: html_output += f"" html_output += "
{title}{url}
" return html_output iface = gr.Interface( fn=show_notices, inputs=[], outputs=gr.HTML(), title="공지사항 및 유용한 링크" ) iface.launch()