fffiloni commited on
Commit
1849912
1 Parent(s): ec771a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -4,18 +4,9 @@ import json
4
  import re
5
  from gradio_client import Client
6
 
7
- #fusecap_client = Client("https://noamrot-fusecap-image-captioning.hf.space/")
8
- #fuyu_client = Client("https://adept-fuyu-8b-demo.hf.space/")
9
- kosmos2_client = Client("https://ydshieh-kosmos-2.hf.space/")
10
 
11
  def get_caption_from_kosmos(image_in):
12
- """
13
- fuyu_result = fuyu_client.predict(
14
- image_in, # str representing input in 'raw_image' Image component
15
- True, # bool in 'Enable detailed captioning' Checkbox component
16
- fn_index=2
17
- )
18
- """
19
 
20
  kosmos2_result = kosmos2_client.predict(
21
  image_in, # str (filepath or URL to image) in 'Test Image' Image component
 
4
  import re
5
  from gradio_client import Client
6
 
 
 
 
7
 
8
  def get_caption_from_kosmos(image_in):
9
+ kosmos2_client = Client("https://ydshieh-kosmos-2.hf.space/")
 
 
 
 
 
 
10
 
11
  kosmos2_result = kosmos2_client.predict(
12
  image_in, # str (filepath or URL to image) in 'Test Image' Image component