Demosthene-OR commited on
Commit
7a6baf9
1 Parent(s): dec1200

Update modelisation_seq2seq_tab.py

Browse files
Files changed (1) hide show
  1. tabs/modelisation_seq2seq_tab.py +3 -0
tabs/modelisation_seq2seq_tab.py CHANGED
@@ -344,8 +344,11 @@ def display_translation(n1, Lang,model_type):
344
  unsafe_allow_html=True)
345
  '''
346
  async def fetch_translation(url, params):
 
 
347
  async with aiohttp.ClientSession() as session:
348
  async with session.get(url, params=params) as response:
 
349
  return await response.json()
350
 
351
  async def display_translation(n1, Lang, model_type):
 
344
  unsafe_allow_html=True)
345
  '''
346
  async def fetch_translation(url, params):
347
+ a = str(time.time())
348
+ st.write("debut fetch: "+a)
349
  async with aiohttp.ClientSession() as session:
350
  async with session.get(url, params=params) as response:
351
+ st.write("fin fetch "+a+" -> "+str(time.time()))
352
  return await response.json()
353
 
354
  async def display_translation(n1, Lang, model_type):