rogerxavier's picture
Update app.py
f2c823c verified
raw
history blame
313 Bytes
import gradio as gr
from ofa_ocr import ofa_ocr_gr
from api import app
import os
import uvicorn
if __name__ == "__main__":
# gr.close_all()
# ocr_demo = ofa_ocr_gr()
# ocr_demo.launch(
# )
uvicorn.run("app:app", host="0.0.0.0", port=int(os.environ.get('PORT', 7860)), reload=True)