Alexandre-Numind commited on
Commit
dfcb45c
·
verified ·
1 Parent(s): 6268d3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -301,7 +301,7 @@ def get_prediction(text,template,example):
301
  try:
302
  prompt = create_prompt(text,template,[example,"",""])
303
  except:
304
- raise gr.Error("Error template")
305
 
306
  result = generate_answer_short(prompt,model,tokenizer)
307
  result = result.replace("\n"," ")
 
301
  try:
302
  prompt = create_prompt(text,template,[example,"",""])
303
  except:
304
+ raise gr.Error("Error JSON (schema or output example)")
305
 
306
  result = generate_answer_short(prompt,model,tokenizer)
307
  result = result.replace("\n"," ")