ikraamkb commited on
Commit
8c8c357
·
verified ·
1 Parent(s): 513e7bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from fastapi import FastAPI, File, UploadFile, Form
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
  import io
@@ -75,4 +75,11 @@ async def visualize(
75
 
76
 
77
 
78
- return StreamingResponse(img_stream, media_type="image/png")
 
 
 
 
 
 
 
 
1
+ '''from fastapi import FastAPI, File, UploadFile, Form
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
  import io
 
75
 
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!"}