Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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!"}
|