charbelmalo commited on
Commit
fea7f95
·
1 Parent(s): c02f3bf
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +8 -2
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.py CHANGED
@@ -190,7 +190,6 @@ with gr.Blocks() as demo:
190
  from fastapi import FastAPI, Request
191
  import uvicorn
192
 
193
- app = gr.mount_gradio_app(FastAPI(), demo)
194
 
195
  @app.post("/get_space_details")
196
  async def get_space_details_route(request: Request):
@@ -207,5 +206,12 @@ async def delete_space_route(request: Request):
207
  return message
208
 
209
  # Run the app
 
 
 
 
 
 
 
210
  if __name__ == "__main__":
211
- uvicorn.run(app, host="0.0.0.0")
 
190
  from fastapi import FastAPI, Request
191
  import uvicorn
192
 
 
193
 
194
  @app.post("/get_space_details")
195
  async def get_space_details_route(request: Request):
 
206
  return message
207
 
208
  # Run the app
209
+ def read_main():
210
+ return {"message": "This is your main app"}
211
+
212
+ # io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
213
+ app = gr.mount_gradio_app(demo, modal, path="/gradio")
214
+
215
+
216
  if __name__ == "__main__":
217
+ uvicorn.run(app, host="0.0.0.0")