Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1 +1,9 @@
|
|
1 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|