ElliottLepine commited on
Commit
b22953d
·
1 Parent(s): 454c672

Fix bad imports

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from llama_index import (
6
  download_loader,
7
  )
8
  import chromadb
9
- from typing import TypedDict
10
  from fastapi import FastAPI, File, UploadFile, Request
11
  from fastapi.responses import JSONResponse
12
 
@@ -54,7 +54,7 @@ query_engine = index.as_query_engine(similarity_top_k=5)
54
  app = FastAPI()
55
 
56
  # Structure of the data sent by the form
57
- InputForm = TypedDict('InputForm', {
58
  'department': str,
59
  'farmSize': float,
60
  'benefitsFromCommonAgriculturalPolicy': bool,
 
6
  download_loader,
7
  )
8
  import chromadb
9
+ import typing_extensions
10
  from fastapi import FastAPI, File, UploadFile, Request
11
  from fastapi.responses import JSONResponse
12
 
 
54
  app = FastAPI()
55
 
56
  # Structure of the data sent by the form
57
+ InputForm = typing_extensions.TypedDict('InputForm', {
58
  'department': str,
59
  'farmSize': float,
60
  'benefitsFromCommonAgriculturalPolicy': bool,