multimodalart HF Staff commited on
Commit
d83f1df
·
verified ·
1 Parent(s): 8eecc9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -174,7 +174,6 @@ class CameraControl3D(gr.HTML):
174
  <div id="camera-control-wrapper" style="width: 100%; height: 450px; position: relative; background: #1a1a1a; border-radius: 12px; overflow: hidden;">
175
  <div id="prompt-overlay" style="position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); padding: 8px 16px; border-radius: 8px; font-family: monospace; font-size: 12px; color: #00ff88; white-space: nowrap; z-index: 10;"></div>
176
  </div>
177
- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
178
  """
179
 
180
  js_on_load = """
@@ -676,4 +675,5 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
676
  )
677
 
678
  if __name__ == "__main__":
679
- demo.launch()
 
 
174
  <div id="camera-control-wrapper" style="width: 100%; height: 450px; position: relative; background: #1a1a1a; border-radius: 12px; overflow: hidden;">
175
  <div id="prompt-overlay" style="position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); padding: 8px 16px; border-radius: 8px; font-family: monospace; font-size: 12px; color: #00ff88; white-space: nowrap; z-index: 10;"></div>
176
  </div>
 
177
  """
178
 
179
  js_on_load = """
 
675
  )
676
 
677
  if __name__ == "__main__":
678
+ head = "<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>"
679
+ demo.launch(head=head)