Spaces:
Runtime error
Runtime error
tlodato
commited on
Commit
·
f94a07c
1
Parent(s):
5ef8470
update
Browse files
app.py
CHANGED
|
@@ -9,8 +9,10 @@ filepath = "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_f
|
|
| 9 |
question = "what color is the bus?"
|
| 10 |
|
| 11 |
def vqa(image:str, prompt:str):
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
| 15 |
css = """
|
| 16 |
#mkd {
|
|
|
|
| 9 |
question = "what color is the bus?"
|
| 10 |
|
| 11 |
def vqa(image:str, prompt:str):
|
| 12 |
+
result = client.predict(image,prompt,fn_index=3)
|
| 13 |
+
print(result)
|
| 14 |
+
print(result.lstrip())
|
| 15 |
+
return result
|
| 16 |
|
| 17 |
css = """
|
| 18 |
#mkd {
|