Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from project_model import process_inputs
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
def handle_inputs(image, audio):
|
| 5 |
if image is None or audio is None:
|
| 6 |
return "Please upload both an image and an audio clip.", None, None
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from project_model import process_inputs
|
| 3 |
|
| 4 |
+
# Login using token stored in environment variable
|
| 5 |
+
login(token=os.environ.get("GEMMA3_TOKEN"), add_to_git_credential=False)
|
| 6 |
+
|
| 7 |
def handle_inputs(image, audio):
|
| 8 |
if image is None or audio is None:
|
| 9 |
return "Please upload both an image and an audio clip.", None, None
|