MatteoScript commited on
Commit
597d35f
·
verified ·
1 Parent(s): 5322bcf

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -516,6 +516,8 @@ def base64_in_immagine(dati_base64):
516
  @app.post("/Image_To_Text")
517
  def image_to_text(request: Request, input_data: InputImageToText):
518
  base64_in_immagine(input_data.base64)
 
 
519
  Version = 1
520
  if Version == 1:
521
  client = Client("https://vikhyatk-moondream1.hf.space/--replicas/av7ct/")
 
516
  @app.post("/Image_To_Text")
517
  def image_to_text(request: Request, input_data: InputImageToText):
518
  base64_in_immagine(input_data.base64)
519
+ if input_data.input == '':
520
+ input_data.input = 'Describe the image'
521
  Version = 1
522
  if Version == 1:
523
  client = Client("https://vikhyatk-moondream1.hf.space/--replicas/av7ct/")