Yash Sachdeva commited on
Commit
c7edc1a
·
1 Parent(s): 60605bd
Files changed (1) hide show
  1. question_paper.py +2 -0
question_paper.py CHANGED
@@ -1,6 +1,8 @@
1
  from transformers import pipeline
2
  from fastapi import FastAPI
3
  from fastapi.middleware.cors import CORSMiddleware
 
 
4
 
5
  pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
6
 
 
1
  from transformers import pipeline
2
  from fastapi import FastAPI
3
  from fastapi.middleware.cors import CORSMiddleware
4
+ from fastapi.encoders import jsonable_encoder
5
+ from fastapi.responses import JSONResponse
6
 
7
  pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
8