omerXfaruq commited on
Commit
0250ad3
·
1 Parent(s): 49088d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,6 +11,7 @@ host = "wss://spaces.huggingface.tech/farukozderim/test-new-queue/queue/join"
11
  success = 0
12
 
13
  async def startup(client_count, interval_duration):
 
14
  begin = time.time()
15
  await asyncio.gather(*[client(i, interval_duration) for i in range(client_count)])
16
  end = time.time()
@@ -38,5 +39,5 @@ async def client(rank, interval_duration):
38
  success+=1
39
  return
40
 
41
- describe = f'Sends x number of events(requests) with y second intervals to the another space, https://huggingface.co/spaces/farukozderim/test-new-queue'
42
- gr.Interface(startup, ["number", "number"], "text", description=describe).launch()
 
11
  success = 0
12
 
13
  async def startup(client_count, interval_duration):
14
+
15
  begin = time.time()
16
  await asyncio.gather(*[client(i, interval_duration) for i in range(client_count)])
17
  end = time.time()
 
39
  success+=1
40
  return
41
 
42
+ describe = f'Sends x number of events(requests) with y second intervals to another space, https://huggingface.co/spaces/farukozderim/test-new-queue'
43
+ gr.Interface(startup, [gr.Number(precision=0), gr.Number(precision=0)], "text", description=describe).launch()