VeuReu commited on
Commit
d13f53f
·
verified ·
1 Parent(s): a54b834

Upload 4 files

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +0 -2
app.py CHANGED
@@ -223,9 +223,9 @@ with gr.Blocks(title="Salamandra 7B Tools · ZeroGPU") as demo:
223
  with gr.Column():
224
  out = gr.JSON(label="Salida")
225
 
226
- btn.click(chat_advanced, [messages, tools, max_new, temp, topp], out, api_name="chat")
227
 
228
  # Endpoint minimalista /predict para ENGINE (mensajes + tools)
229
- gr.Button("Probar /predict").click(predict_for_engine, [messages, tools], out, api_name="predict")
230
 
231
- demo.queue(concurrency_count=1, max_size=16).launch()
 
223
  with gr.Column():
224
  out = gr.JSON(label="Salida")
225
 
226
+ btn.click(chat_advanced, [messages, tools, max_new, temp, topp], out, api_name="chat", concurrency_limit=1)
227
 
228
  # Endpoint minimalista /predict para ENGINE (mensajes + tools)
229
+ gr.Button("Probar /predict").click(predict_for_engine, [messages, tools], out, api_name="predict", concurrency_limit=1)
230
 
231
+ demo.queue(max_size=16).launch()
requirements.txt CHANGED
@@ -1,5 +1,3 @@
1
- gradio>=4.44.1
2
- spaces>=0.25.0
3
  transformers>=4.44.0
4
  torch>=2.2
5
  accelerate>=0.30.0
 
 
 
1
  transformers>=4.44.0
2
  torch>=2.2
3
  accelerate>=0.30.0