PatrickRedStar commited on
Commit
ec97274
·
1 Parent(s): 2ec82d3
Files changed (2) hide show
  1. app.py +4 -4
  2. test_logs/2.log +491 -0
app.py CHANGED
@@ -228,8 +228,8 @@ if __name__ == "__main__":
228
  host = os.getenv("GRADIO_HOST") or os.getenv("GRADIO_SERVER_NAME") or "127.0.0.1"
229
  port = int(os.getenv("PORT") or os.getenv("GRADIO_SERVER_PORT") or 7860)
230
  demo.queue(api_open=False).launch(
231
- server_name=host,
232
- server_port=port,
233
- share=share_flag,
234
- show_api=False,
235
  )
 
228
  host = os.getenv("GRADIO_HOST") or os.getenv("GRADIO_SERVER_NAME") or "127.0.0.1"
229
  port = int(os.getenv("PORT") or os.getenv("GRADIO_SERVER_PORT") or 7860)
230
  demo.queue(api_open=False).launch(
231
+ ssr_mode=False,
232
+ show_api=False,
233
+ server_name="0.0.0.0",
234
+ server_port=7860
235
  )
test_logs/2.log ADDED
@@ -0,0 +1,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ===== Application Startup at 2026-01-09 15:48:54 =====
2
+
3
+ * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ (experimental, to disable set `ssr=False` in `launch()`)
4
+ ERROR: Exception in ASGI application
5
+ Traceback (most recent call last):
6
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 410, in run_asgi
7
+ result = await app( # type: ignore[func-returns-value]
8
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
9
+ return await self.app(scope, receive, send)
10
+ File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1135, in __call__
11
+ await super().__call__(scope, receive, send)
12
+ File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 107, in __call__
13
+ await self.middleware_stack(scope, receive, send)
14
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
15
+ raise exc
16
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
17
+ await self.app(scope, receive, _send)
18
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
19
+ with recv_stream, send_stream, collapse_excgroups():
20
+ File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
21
+ self.gen.throw(typ, value, traceback)
22
+ File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
23
+ raise exc
24
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
25
+ response = await self.dispatch_func(request, call_next)
26
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 392, in conditional_routing_middleware
27
+ response = await call_next(request)
28
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
29
+ raise app_exc from app_exc.__cause__ or app_exc.__context__
30
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
31
+ await self.app(scope, receive_or_disconnect, send_no_error)
32
+ File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 789, in __call__
33
+ await self.app(scope, receive, send)
34
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
35
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
36
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
37
+ raise exc
38
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
39
+ await app(scope, receive, sender)
40
+ File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
41
+ await self.app(scope, receive, send)
42
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
43
+ await self.middleware_stack(scope, receive, send)
44
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
45
+ await route.handle(scope, receive, send)
46
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
47
+ await self.app(scope, receive, send)
48
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 115, in app
49
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
50
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
51
+ raise exc
52
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
53
+ await app(scope, receive, sender)
54
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 101, in app
55
+ response = await f(request)
56
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 355, in app
57
+ raw_response = await run_endpoint_function(
58
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 245, in run_endpoint_function
59
+ return await run_in_threadpool(dependant.call, **values)
60
+ File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 32, in run_in_threadpool
61
+ return await anyio.to_thread.run_sync(func)
62
+ File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 63, in run_sync
63
+ return await get_async_backend().run_sync_in_worker_thread(
64
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
65
+ return await future
66
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 986, in run
67
+ result = context.run(func, *args)
68
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 583, in api_info
69
+ api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
70
+ File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2927, in get_api_info
71
+ python_type = client_utils.json_schema_to_python_type(info)
72
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 920, in json_schema_to_python_type
73
+ type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
74
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 974, in _json_schema_to_python_type
75
+ des = [
76
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 975, in <listcomp>
77
+ f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
78
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 982, in _json_schema_to_python_type
79
+ f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
80
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 928, in _json_schema_to_python_type
81
+ type_ = get_type(schema)
82
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 887, in get_type
83
+ if "const" in schema:
84
+ TypeError: argument of type 'bool' is not iterable
85
+ ERROR: Exception in ASGI application
86
+ Traceback (most recent call last):
87
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 410, in run_asgi
88
+ result = await app( # type: ignore[func-returns-value]
89
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
90
+ return await self.app(scope, receive, send)
91
+ File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1135, in __call__
92
+ await super().__call__(scope, receive, send)
93
+ File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 107, in __call__
94
+ await self.middleware_stack(scope, receive, send)
95
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
96
+ raise exc
97
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
98
+ await self.app(scope, receive, _send)
99
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
100
+ with recv_stream, send_stream, collapse_excgroups():
101
+ File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
102
+ self.gen.throw(typ, value, traceback)
103
+ File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
104
+ raise exc
105
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
106
+ response = await self.dispatch_func(request, call_next)
107
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 392, in conditional_routing_middleware
108
+ response = await call_next(request)
109
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
110
+ raise app_exc from app_exc.__cause__ or app_exc.__context__
111
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
112
+ await self.app(scope, receive_or_disconnect, send_no_error)
113
+ File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 789, in __call__
114
+ await self.app(scope, receive, send)
115
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
116
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
117
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
118
+ raise exc
119
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
120
+ await app(scope, receive, sender)
121
+ File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
122
+ await self.app(scope, receive, send)
123
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
124
+ await self.middleware_stack(scope, receive, send)
125
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
126
+ await route.handle(scope, receive, send)
127
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
128
+ await self.app(scope, receive, send)
129
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 115, in app
130
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
131
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
132
+ raise exc
133
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
134
+ await app(scope, receive, sender)
135
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 101, in app
136
+ response = await f(request)
137
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 355, in app
138
+ raw_response = await run_endpoint_function(
139
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 245, in run_endpoint_function
140
+ return await run_in_threadpool(dependant.call, **values)
141
+ File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 32, in run_in_threadpool
142
+ return await anyio.to_thread.run_sync(func)
143
+ File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 63, in run_sync
144
+ return await get_async_backend().run_sync_in_worker_thread(
145
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
146
+ return await future
147
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 986, in run
148
+ result = context.run(func, *args)
149
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 583, in api_info
150
+ api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
151
+ File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2927, in get_api_info
152
+ python_type = client_utils.json_schema_to_python_type(info)
153
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 920, in json_schema_to_python_type
154
+ type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
155
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 974, in _json_schema_to_python_type
156
+ des = [
157
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 975, in <listcomp>
158
+ f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
159
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 982, in _json_schema_to_python_type
160
+ f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
161
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 928, in _json_schema_to_python_type
162
+ type_ = get_type(schema)
163
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 887, in get_type
164
+ if "const" in schema:
165
+ TypeError: argument of type 'bool' is not iterable
166
+
167
+ To create a public link, set `share=True` in `launch()`.
168
+ ERROR: Exception in ASGI application
169
+ Traceback (most recent call last):
170
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 410, in run_asgi
171
+ result = await app( # type: ignore[func-returns-value]
172
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
173
+ return await self.app(scope, receive, send)
174
+ File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1135, in __call__
175
+ await super().__call__(scope, receive, send)
176
+ File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 107, in __call__
177
+ await self.middleware_stack(scope, receive, send)
178
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
179
+ raise exc
180
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
181
+ await self.app(scope, receive, _send)
182
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
183
+ with recv_stream, send_stream, collapse_excgroups():
184
+ File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
185
+ self.gen.throw(typ, value, traceback)
186
+ File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
187
+ raise exc
188
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
189
+ response = await self.dispatch_func(request, call_next)
190
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 392, in conditional_routing_middleware
191
+ response = await call_next(request)
192
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
193
+ raise app_exc from app_exc.__cause__ or app_exc.__context__
194
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
195
+ await self.app(scope, receive_or_disconnect, send_no_error)
196
+ File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 789, in __call__
197
+ await self.app(scope, receive, send)
198
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
199
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
200
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
201
+ raise exc
202
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
203
+ await app(scope, receive, sender)
204
+ File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
205
+ await self.app(scope, receive, send)
206
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
207
+ await self.middleware_stack(scope, receive, send)
208
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
209
+ await route.handle(scope, receive, send)
210
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
211
+ await self.app(scope, receive, send)
212
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 115, in app
213
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
214
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
215
+ raise exc
216
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
217
+ await app(scope, receive, sender)
218
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 101, in app
219
+ response = await f(request)
220
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 355, in app
221
+ raw_response = await run_endpoint_function(
222
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 245, in run_endpoint_function
223
+ return await run_in_threadpool(dependant.call, **values)
224
+ File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 32, in run_in_threadpool
225
+ return await anyio.to_thread.run_sync(func)
226
+ File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 63, in run_sync
227
+ return await get_async_backend().run_sync_in_worker_thread(
228
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
229
+ return await future
230
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 986, in run
231
+ result = context.run(func, *args)
232
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 583, in api_info
233
+ api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
234
+ File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2927, in get_api_info
235
+ python_type = client_utils.json_schema_to_python_type(info)
236
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 920, in json_schema_to_python_type
237
+ type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
238
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 974, in _json_schema_to_python_type
239
+ des = [
240
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 975, in <listcomp>
241
+ f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
242
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 982, in _json_schema_to_python_type
243
+ f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
244
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 928, in _json_schema_to_python_type
245
+ type_ = get_type(schema)
246
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 887, in get_type
247
+ if "const" in schema:
248
+ TypeError: argument of type 'bool' is not iterable
249
+ ERROR: Exception in ASGI application
250
+ Traceback (most recent call last):
251
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 410, in run_asgi
252
+ result = await app( # type: ignore[func-returns-value]
253
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
254
+ return await self.app(scope, receive, send)
255
+ File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1135, in __call__
256
+ await super().__call__(scope, receive, send)
257
+ File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 107, in __call__
258
+ await self.middleware_stack(scope, receive, send)
259
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
260
+ raise exc
261
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
262
+ await self.app(scope, receive, _send)
263
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
264
+ with recv_stream, send_stream, collapse_excgroups():
265
+ File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
266
+ self.gen.throw(typ, value, traceback)
267
+ File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
268
+ raise exc
269
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
270
+ response = await self.dispatch_func(request, call_next)
271
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 392, in conditional_routing_middleware
272
+ response = await call_next(request)
273
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
274
+ raise app_exc from app_exc.__cause__ or app_exc.__context__
275
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
276
+ await self.app(scope, receive_or_disconnect, send_no_error)
277
+ File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 789, in __call__
278
+ await self.app(scope, receive, send)
279
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
280
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
281
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
282
+ raise exc
283
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
284
+ await app(scope, receive, sender)
285
+ File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
286
+ await self.app(scope, receive, send)
287
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
288
+ await self.middleware_stack(scope, receive, send)
289
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
290
+ await route.handle(scope, receive, send)
291
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
292
+ await self.app(scope, receive, send)
293
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 115, in app
294
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
295
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
296
+ raise exc
297
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
298
+ await app(scope, receive, sender)
299
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 101, in app
300
+ response = await f(request)
301
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 355, in app
302
+ raw_response = await run_endpoint_function(
303
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 245, in run_endpoint_function
304
+ return await run_in_threadpool(dependant.call, **values)
305
+ File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 32, in run_in_threadpool
306
+ return await anyio.to_thread.run_sync(func)
307
+ File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 63, in run_sync
308
+ return await get_async_backend().run_sync_in_worker_thread(
309
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
310
+ return await future
311
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 986, in run
312
+ result = context.run(func, *args)
313
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 583, in api_info
314
+ api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
315
+ File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2927, in get_api_info
316
+ python_type = client_utils.json_schema_to_python_type(info)
317
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 920, in json_schema_to_python_type
318
+ type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
319
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 974, in _json_schema_to_python_type
320
+ des = [
321
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 975, in <listcomp>
322
+ f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
323
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 982, in _json_schema_to_python_type
324
+ f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
325
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 928, in _json_schema_to_python_type
326
+ type_ = get_type(schema)
327
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 887, in get_type
328
+ if "const" in schema:
329
+ TypeError: argument of type 'bool' is not iterable
330
+ ERROR: Exception in ASGI application
331
+ Traceback (most recent call last):
332
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 410, in run_asgi
333
+ result = await app( # type: ignore[func-returns-value]
334
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
335
+ return await self.app(scope, receive, send)
336
+ File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1135, in __call__
337
+ await super().__call__(scope, receive, send)
338
+ File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 107, in __call__
339
+ await self.middleware_stack(scope, receive, send)
340
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
341
+ raise exc
342
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
343
+ await self.app(scope, receive, _send)
344
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
345
+ with recv_stream, send_stream, collapse_excgroups():
346
+ File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
347
+ self.gen.throw(typ, value, traceback)
348
+ File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
349
+ raise exc
350
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
351
+ response = await self.dispatch_func(request, call_next)
352
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 392, in conditional_routing_middleware
353
+ response = await call_next(request)
354
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
355
+ raise app_exc from app_exc.__cause__ or app_exc.__context__
356
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
357
+ await self.app(scope, receive_or_disconnect, send_no_error)
358
+ File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 789, in __call__
359
+ await self.app(scope, receive, send)
360
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
361
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
362
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
363
+ raise exc
364
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
365
+ await app(scope, receive, sender)
366
+ File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
367
+ await self.app(scope, receive, send)
368
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
369
+ await self.middleware_stack(scope, receive, send)
370
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
371
+ await route.handle(scope, receive, send)
372
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
373
+ await self.app(scope, receive, send)
374
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 115, in app
375
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
376
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
377
+ raise exc
378
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
379
+ await app(scope, receive, sender)
380
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 101, in app
381
+ response = await f(request)
382
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 355, in app
383
+ raw_response = await run_endpoint_function(
384
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 245, in run_endpoint_function
385
+ return await run_in_threadpool(dependant.call, **values)
386
+ File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 32, in run_in_threadpool
387
+ return await anyio.to_thread.run_sync(func)
388
+ File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 63, in run_sync
389
+ return await get_async_backend().run_sync_in_worker_thread(
390
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
391
+ return await future
392
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 986, in run
393
+ result = context.run(func, *args)
394
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 583, in api_info
395
+ api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
396
+ File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2927, in get_api_info
397
+ python_type = client_utils.json_schema_to_python_type(info)
398
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 920, in json_schema_to_python_type
399
+ type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
400
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 974, in _json_schema_to_python_type
401
+ des = [
402
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 975, in <listcomp>
403
+ f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
404
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 982, in _json_schema_to_python_type
405
+ f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
406
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 928, in _json_schema_to_python_type
407
+ type_ = get_type(schema)
408
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 887, in get_type
409
+ if "const" in schema:
410
+ TypeError: argument of type 'bool' is not iterable
411
+ ERROR: Exception in ASGI application
412
+ Traceback (most recent call last):
413
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 410, in run_asgi
414
+ result = await app( # type: ignore[func-returns-value]
415
+ File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
416
+ return await self.app(scope, receive, send)
417
+ File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1135, in __call__
418
+ await super().__call__(scope, receive, send)
419
+ File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 107, in __call__
420
+ await self.middleware_stack(scope, receive, send)
421
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
422
+ raise exc
423
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
424
+ await self.app(scope, receive, _send)
425
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
426
+ with recv_stream, send_stream, collapse_excgroups():
427
+ File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
428
+ self.gen.throw(typ, value, traceback)
429
+ File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
430
+ raise exc
431
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
432
+ response = await self.dispatch_func(request, call_next)
433
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 392, in conditional_routing_middleware
434
+ response = await call_next(request)
435
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
436
+ raise app_exc from app_exc.__cause__ or app_exc.__context__
437
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
438
+ await self.app(scope, receive_or_disconnect, send_no_error)
439
+ File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 789, in __call__
440
+ await self.app(scope, receive, send)
441
+ File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
442
+ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
443
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
444
+ raise exc
445
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
446
+ await app(scope, receive, sender)
447
+ File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
448
+ await self.app(scope, receive, send)
449
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
450
+ await self.middleware_stack(scope, receive, send)
451
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
452
+ await route.handle(scope, receive, send)
453
+ File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
454
+ await self.app(scope, receive, send)
455
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 115, in app
456
+ await wrap_app_handling_exceptions(app, request)(scope, receive, send)
457
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
458
+ raise exc
459
+ File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
460
+ await app(scope, receive, sender)
461
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 101, in app
462
+ response = await f(request)
463
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 355, in app
464
+ raw_response = await run_endpoint_function(
465
+ File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 245, in run_endpoint_function
466
+ return await run_in_threadpool(dependant.call, **values)
467
+ File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 32, in run_in_threadpool
468
+ return await anyio.to_thread.run_sync(func)
469
+ File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 63, in run_sync
470
+ return await get_async_backend().run_sync_in_worker_thread(
471
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
472
+ return await future
473
+ File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 986, in run
474
+ result = context.run(func, *args)
475
+ File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 583, in api_info
476
+ api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
477
+ File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2927, in get_api_info
478
+ python_type = client_utils.json_schema_to_python_type(info)
479
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 920, in json_schema_to_python_type
480
+ type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
481
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 974, in _json_schema_to_python_type
482
+ des = [
483
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 975, in <listcomp>
484
+ f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
485
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 982, in _json_schema_to_python_type
486
+ f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
487
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 928, in _json_schema_to_python_type
488
+ type_ = get_type(schema)
489
+ File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 887, in get_type
490
+ if "const" in schema:
491
+ TypeError: argument of type 'bool' is not iterable