Spaces:
Sleeping
Sleeping
chironjit45 commited on
Commit ·
9b7d79b
1
Parent(s): 58e59ca
modified app.py file
Browse files
app.py
CHANGED
|
@@ -69,6 +69,9 @@ model.load_state_dict(torch.load('model_weights.pth'))
|
|
| 69 |
model.eval()
|
| 70 |
|
| 71 |
app = FastAPI()
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
class TextAspectInput(BaseModel):
|
| 74 |
text: str
|
|
|
|
| 69 |
model.eval()
|
| 70 |
|
| 71 |
app = FastAPI()
|
| 72 |
+
@app.get("/greet")
|
| 73 |
+
def greet_json():
|
| 74 |
+
return {"message": "Hellow World"}
|
| 75 |
|
| 76 |
class TextAspectInput(BaseModel):
|
| 77 |
text: str
|