AryanVerma64 commited on
Commit
fbc5bde
·
verified ·
1 Parent(s): a2ca4b5

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -6
app.py CHANGED
@@ -39,7 +39,7 @@ def predict(ImageUrl,imgDraw,imgUplod):
39
  #gradio interface
40
  interface = gr.Interface(
41
  fn=predict,
42
- inputs=["text",gr.Sketchpad(type="pil",shape=(500, 500)),gr.Image(type="pil")],
43
  outputs="text",
44
  title=title,
45
  description=description,
 
39
  #gradio interface
40
  interface = gr.Interface(
41
  fn=predict,
42
+ inputs=["text", gr.Image(type="pil"), gr.Image(type="pil")],
43
  outputs="text",
44
  title=title,
45
  description=description,
requirements.txt CHANGED
@@ -1,9 +1,4 @@
1
  transformers
2
  torch
3
- gradio==3.50.2
4
  pillow
5
- requests
6
- fastapi==0.104.1
7
- starlette==0.27.0
8
- pydantic==1.10.13
9
- jinja2<3.1.4
 
1
  transformers
2
  torch
 
3
  pillow
4
+ requests