MaykaGR commited on
Commit
08ac218
verified
1 Parent(s): 1742431

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -30,10 +30,9 @@ with gr.Blocks(theme=gr.themes.Ocean(primary_hue="pink", neutral_hue="indigo", f
30
 
31
  def describir(url):
32
  raw_image = Image.open(requests.get(url, stream=True).raw).convert('RGB')
33
- #inputs = processor(raw_image, return_tensors="pt").to("cpu")
34
- #out = model.generate(**inputs)
35
- #return processor.decode(out[0], skip_special_tokens=True)
36
- return "description"
37
 
38
  def leer(texto):
39
  response = requests.post("https://charly-text-to-speech.hf.space/run/predict", json={
 
30
 
31
  def describir(url):
32
  raw_image = Image.open(requests.get(url, stream=True).raw).convert('RGB')
33
+ inputs = processor(raw_image, return_tensors="pt").to("cpu")
34
+ out = model.generate(**inputs)
35
+ return processor.decode(out[0], skip_special_tokens=True)
 
36
 
37
  def leer(texto):
38
  response = requests.post("https://charly-text-to-speech.hf.space/run/predict", json={