Testing / gr.Interface
Masrkai's picture
Create gr.Interface
c2a06bc verified
raw
history blame
446 Bytes
import gradio as gr
def gr_generate_3d(prompt):
file_path = generate_3d_model(prompt, output_path="assistant_3d.obj")
if file_path:
return file_path # Gradio automatically makes file downloadable
return "Error generating model."
gr.Interface(
fn=gr_generate_3d,
inputs="text",
outputs="file",
title="3D Model Generator",
description="Generate and download a 3D model based on a text prompt."
).launch()