Spaces:
Strucker
/
Runtime error

ryanzhangfan commited on
Commit
cd9f1f6
1 Parent(s): 3f7736d

downgrade gradio version

Browse files
app.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:34
9
- # Last Modified : 2023-12-20 12:45
10
  # File Name : app.py
11
  # Description :
12
  #
@@ -62,11 +62,20 @@ if __name__ == "__main__":
62
  theme=gr.themes.Default(primary_hue="blue", secondary_hue="blue"),
63
  )
64
 
 
 
 
 
 
 
 
 
65
  demo_all.queue(
66
- max_size=20,
67
  status_update_rate=3,
68
  api_open=False,
69
- default_concurrency_limit=args.concurrency_count,
70
  ).launch(
 
 
71
  share=args.share,
72
  )
 
6
  # Email : zhangfan@baai.ac.cn
7
  # Institute : Beijing Academy of Artificial Intelligence (BAAI)
8
  # Create On : 2023-12-11 15:34
9
+ # Last Modified : 2023-12-20 14:15
10
  # File Name : app.py
11
  # Description :
12
  #
 
62
  theme=gr.themes.Default(primary_hue="blue", secondary_hue="blue"),
63
  )
64
 
65
+ # demo_all.queue(
66
+ # max_size=20,
67
+ # status_update_rate=3,
68
+ # api_open=False,
69
+ # default_concurrency_limit=args.concurrency_count,
70
+ # ).launch(
71
+ # share=args.share,
72
+ # )
73
  demo_all.queue(
74
+ concurrency_count=args.concurrency_count,
75
  status_update_rate=3,
76
  api_open=False,
 
77
  ).launch(
78
+ enable_queue=True,
79
+ server_name=args.host, server_port=args.port,
80
  share=args.share,
81
  )
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 14:09
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", 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)
 
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:15
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")
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)
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 14:09
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", sources=["upload", "clipboard"])
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:15
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")
142
 
143
  with gr.Row():
144
  with gr.Accordion("Grounding Parameters", open=True, visible=True) as grounding_row:
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio
2
  pillow
3
  numpy
4
  opencv-python
 
1
+ gradio==3.40.1
2
  pillow
3
  numpy
4
  opencv-python