Srinivasulu kethanaboina commited on
Commit
af359e8
·
verified ·
1 Parent(s): a001ee9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ from fastapi import FastAPI
2
  import gradio as gr
3
  app = FastAPI()
4
  @app.get("/")
5
- def read_main():
6
- return {"message": "This is your main app"}
7
- io = gr.ChatInterface(respond_to_chat)
8
  app = gr.mount_gradio_app(app, io, path="/gradio")
 
2
  import gradio as gr
3
  app = FastAPI()
4
  @app.get("/")
5
+ def echo(message, history):
6
+ return message
7
+ io = gr.ChatInterface(echo)
8
  app = gr.mount_gradio_app(app, io, path="/gradio")