jflo commited on
Commit
f2119eb
·
verified ·
1 Parent(s): ae68031

Added error catching

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,10 +1,12 @@
1
  import os
 
 
2
 
3
- from fastapi import FastAPI
4
  from pydantic import BaseModel
5
  from typing import List
6
- from supabase import create_client
7
 
 
8
  import torch
9
  import torch.nn as nn
10
  from transformers import DistilBertModel, DistilBertTokenizer
 
1
  import os
2
+ import logging
3
+ from contextlib import asynccontextmanager
4
 
5
+ from fastapi import FastAPI, HTTPException
6
  from pydantic import BaseModel
7
  from typing import List
 
8
 
9
+ from supabase import create_client
10
  import torch
11
  import torch.nn as nn
12
  from transformers import DistilBertModel, DistilBertTokenizer