Spaces:
Runtime error
Runtime error
tlodato
commited on
Commit
·
fe72558
1
Parent(s):
490a51a
desc
Browse files
app.py
CHANGED
@@ -4,8 +4,6 @@ import gradio as gr
|
|
4 |
from gradio_client import Client
|
5 |
from gradio_client.client import Job
|
6 |
|
7 |
-
DESCRIPTION = "# Comparing VQA on image perturbation (rotation)"
|
8 |
-
|
9 |
def vqa_fuyu(image_path: str, question: str, return_job: bool = False) -> str | Job:
|
10 |
try:
|
11 |
client = Client("https://adept-fuyu-8b-demo.hf.space/--replicas/9kcqv/")
|
@@ -25,7 +23,7 @@ def ask(q):
|
|
25 |
return q
|
26 |
|
27 |
with gr.Blocks(css="style.css") as demo:
|
28 |
-
gr.Markdown(
|
29 |
with gr.Row():
|
30 |
with gr.Column():
|
31 |
input_image = gr.Image(type="filepath")
|
|
|
4 |
from gradio_client import Client
|
5 |
from gradio_client.client import Job
|
6 |
|
|
|
|
|
7 |
def vqa_fuyu(image_path: str, question: str, return_job: bool = False) -> str | Job:
|
8 |
try:
|
9 |
client = Client("https://adept-fuyu-8b-demo.hf.space/--replicas/9kcqv/")
|
|
|
23 |
return q
|
24 |
|
25 |
with gr.Blocks(css="style.css") as demo:
|
26 |
+
gr.Markdown("# Comparing VQA on image perturbation (rotation)")
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
input_image = gr.Image(type="filepath")
|