Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
9117404
1
Parent(s):
09cd5ce
Update app.py
Browse files
app.py
CHANGED
@@ -474,7 +474,8 @@ with gr.Blocks() as leaderboard:
|
|
474 |
# 2x speedup (hopefully)
|
475 |
############
|
476 |
async def predict_async(text, model, api_name):
|
477 |
-
|
|
|
478 |
|
479 |
async def predict_both_concurrently(text, mdl1, mdl2):
|
480 |
task1 = predict_async(text, mdl1, "/synthesize")
|
|
|
474 |
# 2x speedup (hopefully)
|
475 |
############
|
476 |
async def predict_async(text, model, api_name):
|
477 |
+
print('Predicting using', model)
|
478 |
+
return router.predict(text, AVAILABLE_MODELS[model], api_name=api_name)
|
479 |
|
480 |
async def predict_both_concurrently(text, mdl1, mdl2):
|
481 |
task1 = predict_async(text, mdl1, "/synthesize")
|