Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,10 +59,6 @@ def tts(text):
|
|
59 |
|
60 |
|
61 |
def predict(image, prompt):
|
62 |
-
# text = captioner(image)[0]["generated_text"]
|
63 |
-
|
64 |
-
# audio_output = "output.wav"
|
65 |
-
# tts.tts_to_file(text, speaker=tts.speakers[0], language="en", file_path=audio_output)
|
66 |
|
67 |
pixel_values = vqa_processor(images=image, return_tensors="pt").pixel_values
|
68 |
|
@@ -84,7 +80,10 @@ demo = gr.Interface(
|
|
84 |
inputs=[gr.Image(type="pil",label="Environment"), gr.Textbox(label="Prompt", value="What is in the scene?")],
|
85 |
outputs=[gr.Textbox(label="Caption"), gr.Audio(type="numpy",label="Audio Feedback")],
|
86 |
css=".gradio-container {background-color: #002A5B}",
|
87 |
-
theme=gr.themes.Soft()
|
|
|
|
|
|
|
88 |
)
|
89 |
|
90 |
demo.launch()
|
|
|
59 |
|
60 |
|
61 |
def predict(image, prompt):
|
|
|
|
|
|
|
|
|
62 |
|
63 |
pixel_values = vqa_processor(images=image, return_tensors="pt").pixel_values
|
64 |
|
|
|
80 |
inputs=[gr.Image(type="pil",label="Environment"), gr.Textbox(label="Prompt", value="What is in the scene?")],
|
81 |
outputs=[gr.Textbox(label="Caption"), gr.Audio(type="numpy",label="Audio Feedback")],
|
82 |
css=".gradio-container {background-color: #002A5B}",
|
83 |
+
theme=gr.themes.Soft().set(
|
84 |
+
button_primary_background_fill="#AAAAAA",
|
85 |
+
button_primary_border="*button_primary_background_fill_dark"
|
86 |
+
)
|
87 |
)
|
88 |
|
89 |
demo.launch()
|