File size: 443 Bytes
0d2dd1f
0e3225c
0d2dd1f
4ebcacd
 
0e3225c
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#app.py

import gradio as gr
from gradio_client import Client

client = Client("https://adept-fuyu-8b-demo.hf.space/--replicas/9kcqv/")
result = client.predict(
        "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # str (filepath on your computer (or URL) of image) in 'Upload your Image' Image component
        "Howdy!",   # str  in 'Ask a Question' Textbox component
        fn_index=3
)
print(result)