Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import google.generativeai as genai
|
|
3 |
from PIL import Image
|
4 |
from gtts import gTTS
|
5 |
import io
|
6 |
-
import base64
|
7 |
|
8 |
# Configure Gemini API key
|
9 |
genai.configure(api_key="AIzaSyB6JYzYNfi8ak7g6526raHQ08YPMiC5Wic")
|
@@ -63,7 +62,7 @@ def interpret_sign(image):
|
|
63 |
# Gradio Interface
|
64 |
demo = gr.Interface(
|
65 |
fn=interpret_sign,
|
66 |
-
inputs=gr.
|
67 |
outputs=[
|
68 |
gr.Textbox(label="Interpretation"),
|
69 |
gr.Audio(label="Audio Interpretation")
|
|
|
3 |
from PIL import Image
|
4 |
from gtts import gTTS
|
5 |
import io
|
|
|
6 |
|
7 |
# Configure Gemini API key
|
8 |
genai.configure(api_key="AIzaSyB6JYzYNfi8ak7g6526raHQ08YPMiC5Wic")
|
|
|
62 |
# Gradio Interface
|
63 |
demo = gr.Interface(
|
64 |
fn=interpret_sign,
|
65 |
+
inputs=gr.Camera(label="Capture Sign Image", type="pil"),
|
66 |
outputs=[
|
67 |
gr.Textbox(label="Interpretation"),
|
68 |
gr.Audio(label="Audio Interpretation")
|