Spaces:
Runtime error
Runtime error
tlodato
commited on
Commit
·
e24cc46
1
Parent(s):
a68c8de
update
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ client = Client("https://adept-fuyu-8b-demo.hf.space/--replicas/9kcqv/")
|
|
| 8 |
filepath = "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
| 9 |
question = "what color is the bus?"
|
| 10 |
|
| 11 |
-
def vqa(image
|
| 12 |
result = client.predict(image,prompt,fn_index=3)
|
| 13 |
print("result: "+result)
|
| 14 |
print("result lstrip"+result.lstrip())
|
|
|
|
| 8 |
filepath = "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
| 9 |
question = "what color is the bus?"
|
| 10 |
|
| 11 |
+
def vqa(image, prompt:str):
|
| 12 |
result = client.predict(image,prompt,fn_index=3)
|
| 13 |
print("result: "+result)
|
| 14 |
print("result lstrip"+result.lstrip())
|