Spaces:
Sleeping
Sleeping
Update app.py
Browse files812 unmodified lines813814815816817818819820821822823824825826827828829830831832833812 unmodified linespdf_btn.click(fn=export_pdf, inputs=[image_output, chart_output, text_output], outputs=pdf_output)gr.Markdown("---\n© 2026 Haan Ilango. All rights reserved. This tool's methodology and design are original work.")demo.launch(prevent_thread_lock=True)from fastapi.middleware.cors import CORSMiddlewaredemo.app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_methods=["GET"],allow_headers=["*"],)@demo.app.get("/count")def get_count():return {"count": read_counter()}import timewhile True:time.sleep(1)812 unmodified lines813814815816817818819820821822823824825826827828829830831832833834835836812 unmodified linespdf_btn.click(fn=export_pdf, inputs=[image_output, chart_output, text_output], outputs=pdf_output)gr.Markdown("---\n© 2026 Haan Ilango. All rights reserved. This tool's methodology and design are original work.")from fastapi import FastAPIfrom fastapi.middleware.cors import CORSMiddlewareimport uvicornapp = FastAPI()app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_methods=["GET"],allow_headers=["*"],)@app.get("/count")def get_count():return {"count": read_counter()}app = gr.mount_gradio_app(app, demo, path="/")if __name__ == "__main__":uvicorn.run(app, host="0.0.0.0", port=7860)
app.py+10-7