Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,6 @@ def generate(
|
|
183 |
return output
|
184 |
else:
|
185 |
output += response.token.text
|
186 |
-
print(response.token.text)
|
187 |
tool, query = parse_tool_call(output[generation_start_idx:])
|
188 |
# print("tool", tool, query)
|
189 |
if tool is not None and query is not None:
|
@@ -302,7 +301,12 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
302 |
value=clients[list(clients.keys())[0]][2],
|
303 |
label="System prompt",
|
304 |
)
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
306 |
with gr.Row():
|
307 |
with gr.Column():
|
308 |
instruction = gr.Textbox(
|
@@ -384,7 +388,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
384 |
outputs=[output],
|
385 |
)
|
386 |
share_button.click(None, [], [], _js=share_js)
|
387 |
-
demo.queue(concurrency_count=16).launch(
|
388 |
|
389 |
|
390 |
"""
|
|
|
183 |
return output
|
184 |
else:
|
185 |
output += response.token.text
|
|
|
186 |
tool, query = parse_tool_call(output[generation_start_idx:])
|
187 |
# print("tool", tool, query)
|
188 |
if tool is not None and query is not None:
|
|
|
301 |
value=clients[list(clients.keys())[0]][2],
|
302 |
label="System prompt",
|
303 |
)
|
304 |
+
version.select(
|
305 |
+
lambda x: clients[x][2],
|
306 |
+
inputs=[version],
|
307 |
+
outputs=[system_prompt],
|
308 |
+
)
|
309 |
+
|
310 |
with gr.Row():
|
311 |
with gr.Column():
|
312 |
instruction = gr.Textbox(
|
|
|
388 |
outputs=[output],
|
389 |
)
|
390 |
share_button.click(None, [], [], _js=share_js)
|
391 |
+
demo.queue(concurrency_count=16).launch(share=True)
|
392 |
|
393 |
|
394 |
"""
|