Skip to content

Commit

Permalink
add gradio v5 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Oct 9, 2024
1 parent 4c01ec9 commit f9b28d1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ if [ ! -e "/opt/run/app.py" ]; then
echo 'import gradio as gr
from fastapi import FastAPI
_css = gr.Theme.from_hub("gradio/monochrome")
css="""
footer {
visibility: hidden;
}
"""
_theme = gr.themes.Ocean()
demo = gr.Interface(
theme=_css,
css=css,
theme=_theme,
fn=lambda x: x,
title="3D(Demo)",
inputs=gr.Model3D(label="Input"),
Expand Down

0 comments on commit f9b28d1

Please sign in to comment.