Spaces:
Build error
Build error
from fastapi import FastAPI, HTTPException | |
from gradio_client import Client | |
app = FastAPI() | |
async def predict_async(): | |
client = Client("Nyandori/whisper") | |
result = await client.predict( | |
url_input="https://firebasestorage.googleapis.com/v0/b/daily-devotion-72b13.appspot.com/o/devotion_preaching%2FDEVOTION%20FOR%20FRIDAY%2026TH%20APRIL%202024%20WITH%20FR%20EUSTACE%20SIAME%20SDB!.mp4?alt=media&token=b5e28a04-5e5f-45d4-b864-a12f9c20c81a", | |
api_name="/predict" | |
) | |
return result | |
async def predict(): | |
result = await predict_async() | |
return {"result": result} | |