Spaces:
Running
Running
clementruhm
commited on
Commit
·
1adeefb
1
Parent(s):
0b2bb7e
app.py: add a request counter
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ script_dir = os.path.dirname(os.path.abspath(__file__))
|
|
17 |
|
18 |
def main():
|
19 |
logging.basicConfig(level=logging.INFO)
|
|
|
20 |
|
21 |
badges = """
|
22 |
<div style="display: flex">
|
@@ -94,6 +95,8 @@ def main():
|
|
94 |
if not src_ or not tgt_:
|
95 |
logging.warning("source or target are not provided")
|
96 |
return
|
|
|
|
|
97 |
return vc_service_request(src_, tgt_)
|
98 |
|
99 |
convert_btn.click(
|
|
|
17 |
|
18 |
def main():
|
19 |
logging.basicConfig(level=logging.INFO)
|
20 |
+
counter = 0
|
21 |
|
22 |
badges = """
|
23 |
<div style="display: flex">
|
|
|
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_)
|
101 |
|
102 |
convert_btn.click(
|