ikraamkb commited on
Commit
ab081d8
·
verified ·
1 Parent(s): a4b8ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -76,10 +76,12 @@ async def visualize(
76
 
77
 
78
  return StreamingResponse(img_stream, media_type="image/png")'''
79
- from fastapi import FastAPI
80
 
81
- app = FastAPI()
 
 
 
82
 
83
- @app.get("/")
84
- def greet_json():
85
- return {"Hello": "World!"}
 
76
 
77
 
78
  return StreamingResponse(img_stream, media_type="image/png")'''
79
+ import gradio as gr
80
 
81
+ def hello(name):
82
+ return f"Hello, {name}!"
83
+
84
+ app = gr.Interface(fn=hello, inputs="text", outputs="text")
85
 
86
+ if __name__ == "__main__":
87
+ app.launch()