MisbahKhan commited on
Commit
36b5b5a
·
verified ·
1 Parent(s): 1d582e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
 
2
  import random
3
  from functools import partial
@@ -15,9 +17,14 @@ from nncore.nn import build_model
15
 
16
  import pandas as pd
17
 
 
 
 
 
 
18
 
19
  CONFIG = 'configs/qvhighlights/r2_tuning_qvhighlights.py'
20
- WEIGHT = 'https://huggingface.co/yeliudev/R2-Tuning/resolve/main/checkpoints/r2_tuning_qvhighlights-ed516355.pth'
21
 
22
  # yapf:disable
23
  EXAMPLES = [
 
1
+ can you improve the ui, make it more beautiful
2
+ # Copyright (c) Ye Liu. Licensed under the BSD 3-Clause License.
3
 
4
  import random
5
  from functools import partial
 
17
 
18
  import pandas as pd
19
 
20
+ TITLE = '🌀R2-Tuning: Efficient Image-to-Video Transfer Learning for Video Temporal Grounding'
21
+
22
+ TITLE_MD = '<h1 align="center">🌀R<sup>2</sup>-Tuning: Efficient Image-to-Video Transfer Learning for Video Temporal Grounding</h1>'
23
+ DESCRIPTION_MD = 'R<sup>2</sup>-Tuning is a parameter- and memory-efficient transfer learning method for video temporal grounding. Please find more details in our <a href="https://arxiv.org/abs/2404.00801" target="_blank">Tech Report</a> and <a href="https://github.com/yeliudev/R2-Tuning" target="_blank">GitHub Repo</a>.'
24
+ GUIDE_MD = '### User Guide:\n1. Upload a video or click "random" to sample one.\n2. Input a text query. A good practice is to write a sentence with 5~15 words.\n3. Click "submit" and you\'ll see the moment retrieval and highlight detection results on the right.'
25
 
26
  CONFIG = 'configs/qvhighlights/r2_tuning_qvhighlights.py'
27
+ WEIGHT = 'r2_tuning_qvhighlights-ed516355.pth'
28
 
29
  # yapf:disable
30
  EXAMPLES = [