Iker commited on
Commit
240abb3
1 Parent(s): d4974c7
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -21,7 +21,6 @@ def generate_text(
21
  url: str, mode: int, progress=gr.Progress(track_tqdm=False)
22
  ) -> (str, str):
23
  global cache_handler
24
- global run_log
25
 
26
  # 1) Download the article
27
 
@@ -63,7 +62,8 @@ def generate_text(
63
  )
64
 
65
  for o in temp:
66
- yield title, temp, text
 
67
  except Exception as e:
68
  yield (
69
  "🤖 El servidor no se encuentra disponible.",
@@ -82,7 +82,6 @@ def generate_text(
82
  temp = finish_generation(temp)
83
  yield title, temp, text
84
 
85
- run_log.flag()
86
  return title, temp, text
87
 
88
 
 
21
  url: str, mode: int, progress=gr.Progress(track_tqdm=False)
22
  ) -> (str, str):
23
  global cache_handler
 
24
 
25
  # 1) Download the article
26
 
 
62
  )
63
 
64
  for o in temp:
65
+ yield title, o, text
66
+
67
  except Exception as e:
68
  yield (
69
  "🤖 El servidor no se encuentra disponible.",
 
82
  temp = finish_generation(temp)
83
  yield title, temp, text
84
 
 
85
  return title, temp, text
86
 
87