Skip to content

Commit

Permalink
fix video component (modelscope#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
tastelikefeet authored Aug 13, 2024
1 parent d61fda7 commit 68ead01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion swift/ui/llm_eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def do_build_ui(cls, base_tab: Type['BaseUI']):
from evalscope.backend.vlm_eval_kit import VLMEvalKitBackendManager
eval_dataset_list = (
OpenCompassBackendManager.list_datasets() + VLMEvalKitBackendManager.list_supported_datasets())
except ImportError:
except Exception as e:
logger.error(e)
eval_dataset_list = [
'AX_b', 'winogrande', 'mmlu', 'afqmc', 'COPA', 'commonsenseqa', 'CMRC', 'lcsts', 'nq', 'ocnli_fc',
'math', 'mbpp', 'DRCD', 'TheoremQA', 'CB', 'ReCoRD', 'lambada', 'tnews', 'flores', 'humaneval', 'AX_g',
Expand Down
2 changes: 1 addition & 1 deletion swift/ui/llm_infer/llm_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def do_build_ui(cls, base_tab: Type['BaseUI']):
with gr.TabItem(label='Image'):
image = gr.Image(type='filepath')
with gr.TabItem(label='Video'):
video = gr.Video(type='filepath')
video = gr.Video()
with gr.TabItem(label='Audio'):
audio = gr.Audio(type='filepath')

Expand Down

0 comments on commit 68ead01

Please sign in to comment.