Spaces:
Configuration error
Configuration error
Saroj Bono commited on
Commit ·
388f696
1
Parent(s): f53082b
Fix: Force environment to use correct Gradio version
Browse files- README.md +0 -1
- app.py +1 -2
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,6 @@ emoji: 👁️🗨️
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
|
|
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
| 9 |
---
|
app.py
CHANGED
|
@@ -5,7 +5,6 @@ An application that uses vision and voice to answer questions about the world.
|
|
| 5 |
import gradio as gr
|
| 6 |
from transformers import pipeline
|
| 7 |
from PIL import Image
|
| 8 |
-
import numpy as np
|
| 9 |
|
| 10 |
# --- AI Model Initialization ---
|
| 11 |
# Load a pre-trained model that is supported for visual-question-answering.
|
|
@@ -45,7 +44,7 @@ def process_inputs(webcam_image, mic_audio):
|
|
| 45 |
demo = gr.Interface(
|
| 46 |
fn=process_inputs,
|
| 47 |
inputs=[
|
| 48 |
-
gr.Image(source="webcam", label="Webcam Feed"),
|
| 49 |
gr.Audio(source="microphone", type="filepath", label="Ask a Question")
|
| 50 |
],
|
| 51 |
outputs=gr.Textbox(label="AI Assistant's Response"),
|
|
|
|
| 5 |
import gradio as gr
|
| 6 |
from transformers import pipeline
|
| 7 |
from PIL import Image
|
|
|
|
| 8 |
|
| 9 |
# --- AI Model Initialization ---
|
| 10 |
# Load a pre-trained model that is supported for visual-question-answering.
|
|
|
|
| 44 |
demo = gr.Interface(
|
| 45 |
fn=process_inputs,
|
| 46 |
inputs=[
|
| 47 |
+
gr.Image(source="webcam", type="pil", label="Webcam Feed"),
|
| 48 |
gr.Audio(source="microphone", type="filepath", label="Ask a Question")
|
| 49 |
],
|
| 50 |
outputs=gr.Textbox(label="AI Assistant's Response"),
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
mujoco==3.1.3 # official DeepMind wheel, GLSL software rasterizer included
|
| 2 |
-
gradio==4.
|
| 3 |
pillow==10.3.0
|
| 4 |
numpy==1.26.4
|
| 5 |
transformers
|
|
|
|
| 1 |
mujoco==3.1.3 # official DeepMind wheel, GLSL software rasterizer included
|
| 2 |
+
gradio==4.29.0 # UI - conservative stable version for HF Spaces
|
| 3 |
pillow==10.3.0
|
| 4 |
numpy==1.26.4
|
| 5 |
transformers
|