clementruhm commited on
Commit
6c2c3a2
·
1 Parent(s): 1adeefb

app.py: global counter

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,11 +13,10 @@ import gradio as gr
13
  from vc_service_request import vc_service_request
14
 
15
  script_dir = os.path.dirname(os.path.abspath(__file__))
16
-
17
 
18
  def main():
19
  logging.basicConfig(level=logging.INFO)
20
- counter = 0
21
 
22
  badges = """
23
  <div style="display: flex">
@@ -95,6 +94,7 @@ def main():
95
  if not src_ or not tgt_:
96
  logging.warning("source or target are not provided")
97
  return
 
98
  logging.info(f"Making conversion request: [{counter}]")
99
  counter += 1
100
  return vc_service_request(src_, tgt_)
 
13
  from vc_service_request import vc_service_request
14
 
15
  script_dir = os.path.dirname(os.path.abspath(__file__))
16
+ counter = 0
17
 
18
  def main():
19
  logging.basicConfig(level=logging.INFO)
 
20
 
21
  badges = """
22
  <div style="display: flex">
 
94
  if not src_ or not tgt_:
95
  logging.warning("source or target are not provided")
96
  return
97
+ global counter
98
  logging.info(f"Making conversion request: [{counter}]")
99
  counter += 1
100
  return vc_service_request(src_, tgt_)