ProdVizDemo / app.py
rootglitch's picture
Update app.py
7b68f20 verified
raw
history blame
426 Bytes
import os
from gradio_client import Client, handle_file
HF_TOKEN = os.environ.get("HF_TOKEN")
# Create a client with authentication
client = Client(
"rootglitch/CarVizGradioDemo01",
hf_token=HF_TOKEN
)
result = client.predict(
input_image_path=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
prompt="Hello!!",
api_name="/generate_image"
)
print(result)