#!/usr/bin/env python import os import gradio as gr import torch from app_text_to_3d import create_demo as create_demo_text_to_3d from model import Model DESCRIPTION = "# [prompt-to-img-to-3D-to-3D_print](https://github.com/openai/shap-e)" if not torch.cuda.is_available(): DESCRIPTION += "\n

ML project CITech text-img-3d_model-3d_print.

" model = Model() with gr.Blocks(css="style.css") as demo: gr.Markdown(DESCRIPTION) with gr.Tabs(): with gr.Tab(label="Text to 3D"): create_demo_text_to_3d(model) "

ML project CITech text-img-3d_model-3d_print.

" if __name__ == "__main__": demo.queue(max_size=10).launch()