Spaces:
Runtime error
Runtime error
a100 kh
commited on
Commit
·
08ba08b
1
Parent(s):
3022c4d
error
Browse files
app.py
CHANGED
@@ -3,37 +3,14 @@ The gradio demo server with multiple tabs.
|
|
3 |
It supports chatting with a single model or chatting with two models side-by-side.
|
4 |
"""
|
5 |
|
6 |
-
import
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
from serve.gradio_block_arena_anony import (
|
15 |
-
build_side_by_side_ui_anony,
|
16 |
-
load_demo_side_by_side_anony,
|
17 |
-
set_global_vars_anony,
|
18 |
-
)
|
19 |
-
from serve.gradio_block_arena_named import (
|
20 |
-
build_side_by_side_ui_named,
|
21 |
-
load_demo_side_by_side_named,
|
22 |
-
set_global_vars_named,
|
23 |
-
)
|
24 |
-
from serve.gradio_block_arena_vision import (
|
25 |
-
build_single_vision_language_model_ui,
|
26 |
-
)
|
27 |
-
from serve.gradio_block_arena_vision_anony import (
|
28 |
-
build_side_by_side_vision_ui_anony,
|
29 |
-
load_demo_side_by_side_vision_anony,
|
30 |
-
)
|
31 |
-
from serve.gradio_block_arena_vision_named import (
|
32 |
-
build_side_by_side_vision_ui_named,
|
33 |
-
load_demo_side_by_side_vision_named,
|
34 |
)
|
35 |
-
from serve.gradio_global_state import Context
|
36 |
-
|
37 |
from serve.gradio_web_server import (
|
38 |
set_global_vars,
|
39 |
block_css,
|
@@ -42,14 +19,33 @@ from serve.gradio_web_server import (
|
|
42 |
load_demo_single,
|
43 |
get_ip,
|
44 |
)
|
45 |
-
from serve.
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
alert_js,
|
50 |
-
parse_gradio_auth_creds,
|
51 |
)
|
52 |
-
from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
|
55 |
scheduler = CommitScheduler(
|
|
|
3 |
It supports chatting with a single model or chatting with two models side-by-side.
|
4 |
"""
|
5 |
|
6 |
+
from huggingface_hub import CommitScheduler
|
7 |
+
from serve.utils import (
|
8 |
+
build_logger,
|
9 |
+
get_window_url_params_js,
|
10 |
+
get_window_url_params_with_tos_js,
|
11 |
+
alert_js,
|
12 |
+
parse_gradio_auth_creds,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
)
|
|
|
|
|
14 |
from serve.gradio_web_server import (
|
15 |
set_global_vars,
|
16 |
block_css,
|
|
|
19 |
load_demo_single,
|
20 |
get_ip,
|
21 |
)
|
22 |
+
from serve.gradio_global_state import Context
|
23 |
+
from serve.gradio_block_arena_vision_named import (
|
24 |
+
build_side_by_side_vision_ui_named,
|
25 |
+
load_demo_side_by_side_vision_named,
|
|
|
|
|
26 |
)
|
27 |
+
from serve.gradio_block_arena_vision_anony import (
|
28 |
+
build_side_by_side_vision_ui_anony,
|
29 |
+
load_demo_side_by_side_vision_anony,
|
30 |
+
)
|
31 |
+
from serve.gradio_block_arena_vision import (
|
32 |
+
build_single_vision_language_model_ui,
|
33 |
+
)
|
34 |
+
from serve.gradio_block_arena_named import (
|
35 |
+
build_side_by_side_ui_named,
|
36 |
+
load_demo_side_by_side_named,
|
37 |
+
set_global_vars_named,
|
38 |
+
)
|
39 |
+
from serve.gradio_block_arena_anony import (
|
40 |
+
build_side_by_side_ui_anony,
|
41 |
+
load_demo_side_by_side_anony,
|
42 |
+
set_global_vars_anony,
|
43 |
+
)
|
44 |
+
import gradio as gr
|
45 |
+
from typing import List
|
46 |
+
import argparse
|
47 |
+
# import abcde12345 # stop
|
48 |
+
raise Exception("提供は一旦終了しました。")
|
49 |
|
50 |
|
51 |
scheduler = CommitScheduler(
|