SUPERFIRE777 commited on
Commit
afbacf2
1 Parent(s): 3cfb2b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -11,9 +11,13 @@ def func(query):
11
  output = model.forward(number=100)["output"]
12
  return output
13
  except Exception as e:
14
- return str(e)
15
  else:
16
- return generate(query)
 
 
 
 
17
 
18
  iface = gr.Interface(fn=func, inputs="text", outputs="text")
19
  iface.launch()
 
11
  output = model.forward(number=100)["output"]
12
  return output
13
  except Exception as e:
14
+ return "Error [A]" + str(e)
15
  else:
16
+ try:
17
+ a = generate(query)
18
+ return a
19
+ except Exception as e:
20
+ return "Error [B]" + str(e)
21
 
22
  iface = gr.Interface(fn=func, inputs="text", outputs="text")
23
  iface.launch()