Moditha24 commited on
Commit
a673bf7
·
verified ·
1 Parent(s): 3a48866

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -19
app.py DELETED
@@ -1,19 +0,0 @@
1
- import gradio as gr
2
- from fastapi import FastAPI
3
- from starlette.staticfiles import StaticFiles
4
-
5
- # Create a FastAPI app
6
- app = FastAPI()
7
-
8
- # Serve the React build folder
9
- app.mount("/", StaticFiles(directory="build", html=True), name="static")
10
-
11
- # Define a dummy Gradio interface (optional)
12
- def greet(name):
13
- return f"Hello, {name}! Welcome to Flight Timings."
14
-
15
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
16
-
17
- # Add Gradio to FastAPI
18
- app = gr.mount_gradio_app(app, demo, path="/gradio")
19
-