NinjaTribe commited on
Commit
f51cb6e
·
verified ·
1 Parent(s): 104eec5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -20,10 +20,7 @@ def role(message, history):
20
 
21
  try:
22
  response = client.text_generation(prompt, max_new_tokens=250)
23
- except Exception as e:
24
- response = f"Erro ao gerar resposta: {e}"
25
- print(f"Erro ao gerar resposta: {e}")
26
-
27
  history.append({"role": "assistant", "content": response})
28
 
29
  return history, history
 
20
 
21
  try:
22
  response = client.text_generation(prompt, max_new_tokens=250)
23
+
 
 
 
24
  history.append({"role": "assistant", "content": response})
25
 
26
  return history, history