Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def set_model(inp):
|
| 4 |
+
return inp
|
| 5 |
+
|
| 6 |
+
with gr.Blocks() as demo:
|
| 7 |
+
model_file=gr.Textbox()
|
| 8 |
+
btn=gr.Button()
|
| 9 |
+
model_viewer = gr.Model3D()
|
| 10 |
+
btn.click(set_model,model_file,model_viewer)
|
| 11 |
+
demo.launch()
|