Update app.py
Browse files
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
|
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"," ")
|