gradio-pr-bot commited on
Commit
70ffa3f
·
verified ·
1 Parent(s): 98662f0

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +7 -8
  2. requirements.txt +2 -0
  3. run.py +17 -0
README.md CHANGED
@@ -1,13 +1,12 @@
 
1
  ---
2
- title: Html Head Script Order Main
3
- emoji: 🚀
4
- colorFrom: gray
5
- colorTo: pink
6
  sdk: gradio
7
  sdk_version: 6.16.0
8
- python_version: '3.13'
9
- app_file: app.py
10
  pinned: false
 
11
  ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+
2
  ---
3
+ title: html_head_script_order_main
4
+ emoji: 🔥
5
+ colorFrom: indigo
6
+ colorTo: indigo
7
  sdk: gradio
8
  sdk_version: 6.16.0
9
+ app_file: run.py
 
10
  pinned: false
11
+ hf_oauth: true
12
  ---
 
 
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio-client @ git+https://github.com/gradio-app/gradio@61b9715739936a73c03408eb8b435bf7833f524f#subdirectory=client/python
2
+ https://huggingface.co/buckets/gradio/pypi-previews/resolve/61b9715739936a73c03408eb8b435bf7833f524f/gradio-6.16.0-py3-none-any.whl
run.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Fixture for the head-script order test: "plugin" depends on a global set by
4
+ # "core", so it must run after core (document order).
5
+
6
+ with gr.Blocks() as demo:
7
+ gr.HTML(
8
+ html_template="<div id='order-result'>pending</div>",
9
+ head=(
10
+ '<script src="/__head_order__/core.js"></script>'
11
+ '<script src="/__head_order__/plugin.js"></script>'
12
+ ),
13
+ elem_id="order_demo",
14
+ )
15
+
16
+ if __name__ == "__main__":
17
+ demo.launch()