Spaces:
Runtime error
Runtime error
ryanzhangfan
commited on
Commit
•
3f7736d
1
Parent(s):
123074d
disable webcam input
Browse files- demo/chat_frontend.py +3 -3
- demo/generation_frontend.py +2 -2
demo/chat_frontend.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
# Email : zhangfan@baai.ac.cn
|
7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
8 |
# Create On : 2023-12-12 18:05
|
9 |
-
# Last Modified : 2023-12-20
|
10 |
# File Name : chat_frontend.py
|
11 |
# Description :
|
12 |
#
|
@@ -148,9 +148,9 @@ def build_chat(args):
|
|
148 |
with gr.Row():
|
149 |
with gr.Column(scale=2):
|
150 |
with gr.Row():
|
151 |
-
imagebox = gr.Image(type="pil")
|
152 |
with gr.Row():
|
153 |
-
videobox = gr.Video()
|
154 |
|
155 |
with gr.Accordion("Parameters", open=True, visible=True) as parameter_row:
|
156 |
do_sample = gr.Checkbox(value=False, label="Do Sample", interactive=True)
|
|
|
6 |
# Email : zhangfan@baai.ac.cn
|
7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
8 |
# Create On : 2023-12-12 18:05
|
9 |
+
# Last Modified : 2023-12-20 14:09
|
10 |
# File Name : chat_frontend.py
|
11 |
# Description :
|
12 |
#
|
|
|
148 |
with gr.Row():
|
149 |
with gr.Column(scale=2):
|
150 |
with gr.Row():
|
151 |
+
imagebox = gr.Image(type="pil", sources=["upload", "clipboard"])
|
152 |
with gr.Row():
|
153 |
+
videobox = gr.Video(sources=["upload"])
|
154 |
|
155 |
with gr.Accordion("Parameters", open=True, visible=True) as parameter_row:
|
156 |
do_sample = gr.Checkbox(value=False, label="Do Sample", interactive=True)
|
demo/generation_frontend.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
# Email : zhangfan@baai.ac.cn
|
7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
8 |
# Create On : 2023-12-11 15:35
|
9 |
-
# Last Modified : 2023-12-20
|
10 |
# File Name : generation_frontend.py
|
11 |
# Description :
|
12 |
#
|
@@ -138,7 +138,7 @@ def build_generation(args):
|
|
138 |
with gr.Row():
|
139 |
with gr.Column(scale=2):
|
140 |
with gr.Row():
|
141 |
-
imagebox = gr.Image(type="pil")
|
142 |
|
143 |
with gr.Row():
|
144 |
with gr.Accordion("Grounding Parameters", open=True, visible=True) as grounding_row:
|
|
|
6 |
# Email : zhangfan@baai.ac.cn
|
7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
8 |
# Create On : 2023-12-11 15:35
|
9 |
+
# Last Modified : 2023-12-20 14:09
|
10 |
# File Name : generation_frontend.py
|
11 |
# Description :
|
12 |
#
|
|
|
138 |
with gr.Row():
|
139 |
with gr.Column(scale=2):
|
140 |
with gr.Row():
|
141 |
+
imagebox = gr.Image(type="pil", sources=["upload", "clipboard"])
|
142 |
|
143 |
with gr.Row():
|
144 |
with gr.Accordion("Grounding Parameters", open=True, visible=True) as grounding_row:
|