Spaces:
No application file
No application file
Yaswanth sai
commited on
Commit
·
cbedbc7
1
Parent(s):
0dc6563
que
Browse files
app.py
CHANGED
@@ -103,15 +103,16 @@ with gr.Blocks(title="Live Coding HR Assistant") as demo:
|
|
103 |
fn=generate_response,
|
104 |
inputs=[task_description, code_snippet, request_type, mode],
|
105 |
outputs=output,
|
106 |
-
api_name="predict"
|
|
|
107 |
)
|
108 |
|
109 |
# Configure queue and launch
|
110 |
demo.queue(
|
111 |
-
concurrency_count
|
112 |
-
max_size=10
|
113 |
).launch(
|
114 |
server_name="0.0.0.0",
|
115 |
server_port=7860,
|
116 |
share=True
|
|
|
117 |
)
|
|
|
103 |
fn=generate_response,
|
104 |
inputs=[task_description, code_snippet, request_type, mode],
|
105 |
outputs=output,
|
106 |
+
api_name="predict",
|
107 |
+
concurrency_limit=1 # Set concurrency limit here
|
108 |
)
|
109 |
|
110 |
# Configure queue and launch
|
111 |
demo.queue(
|
112 |
+
max_size=10 # Removed concurrency_count
|
|
|
113 |
).launch(
|
114 |
server_name="0.0.0.0",
|
115 |
server_port=7860,
|
116 |
share=True
|
117 |
+
# You can optionally add max_threads here if needed, e.g., max_threads=10
|
118 |
)
|