Anandhju-jayan commited on
Commit
7c8b377
1 Parent(s): bda212c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -1,12 +1,10 @@
1
  import io
2
  import os
3
- import streamlit as st
4
  import requests
5
  from PIL import Image
6
  from model import get_caption_model, generate_caption
7
  import gradio as gr
8
 
9
- @st.cache(allow_output_mutation=True)
10
  def get_model():
11
  return get_caption_model()
12
 
@@ -30,7 +28,6 @@ def predict():
30
  def launch(inputs):
31
  img = Image.open(requests.get(inputs, stream=True).raw)
32
  img = img.convert('RGB')
33
- st.image(img)
34
  img.save('tmp.jpg')
35
  o=predict()
36
  str1=""
 
1
  import io
2
  import os
 
3
  import requests
4
  from PIL import Image
5
  from model import get_caption_model, generate_caption
6
  import gradio as gr
7
 
 
8
  def get_model():
9
  return get_caption_model()
10
 
 
28
  def launch(inputs):
29
  img = Image.open(requests.get(inputs, stream=True).raw)
30
  img = img.convert('RGB')
 
31
  img.save('tmp.jpg')
32
  o=predict()
33
  str1=""