r3gm commited on
Commit
23c57cd
1 Parent(s): c6cfd5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -274,10 +274,8 @@ sys.stdout = Logger("output.log")
274
  def read_logs():
275
  sys.stdout.flush()
276
  with open("output.log", "r") as f:
277
- if f.read()[:17] == "Model was trained"
278
  return f.read()
279
- else:
280
- return "."
281
 
282
 
283
  with gr.Blocks() as demo:
 
274
  def read_logs():
275
  sys.stdout.flush()
276
  with open("output.log", "r") as f:
277
+ if f.read()[:17] != "Model was trained":
278
  return f.read()
 
 
279
 
280
 
281
  with gr.Blocks() as demo: