Spaces:
Runtime error
Runtime error
Srinivasulu kethanaboina
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from fastapi import FastAPI
|
|
2 |
import gradio as gr
|
3 |
app = FastAPI()
|
4 |
@app.get("/")
|
5 |
-
def
|
6 |
-
return
|
7 |
-
io = gr.ChatInterface(
|
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")
|