rootglitch commited on
Commit
b6820a3
·
verified ·
1 Parent(s): 105ab37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1 +1,9 @@
1
- import os; exec(os.getenv('EXEC'))
 
 
 
 
 
 
 
 
 
1
+ from gradio_client import Client, handle_file
2
+
3
+ client = Client("rootglitch/CarVizGradioDemo01")
4
+ result = client.predict(
5
+ input_image_path=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
6
+ prompt="Hello!!",
7
+ api_name="/generate_image"
8
+ )
9
+ print(result)