Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,7 +140,7 @@ Respond in STRICT JSON ONLY:
|
|
| 140 |
# ---------------------------------------------------
|
| 141 |
# Gradio UI Function (NOW USES BASE64 STRING INPUT)
|
| 142 |
# ---------------------------------------------------
|
| 143 |
-
def
|
| 144 |
hf_token_input: str,
|
| 145 |
robot_id_input: str,
|
| 146 |
image_b64_input: str # Changed input type to a string (base64)
|
|
@@ -165,7 +165,7 @@ def gradio_ui_with_base64_fields(
|
|
| 165 |
|
| 166 |
|
| 167 |
app = gr.Interface(
|
| 168 |
-
fn=
|
| 169 |
inputs=[
|
| 170 |
gr.Textbox(label="Hugging Face Token", lines=1),
|
| 171 |
gr.Textbox(label="Robot ID", lines=1, value="unknown"),
|
|
|
|
| 140 |
# ---------------------------------------------------
|
| 141 |
# Gradio UI Function (NOW USES BASE64 STRING INPUT)
|
| 142 |
# ---------------------------------------------------
|
| 143 |
+
def robot_watch(
|
| 144 |
hf_token_input: str,
|
| 145 |
robot_id_input: str,
|
| 146 |
image_b64_input: str # Changed input type to a string (base64)
|
|
|
|
| 165 |
|
| 166 |
|
| 167 |
app = gr.Interface(
|
| 168 |
+
fn=robot_watch, # Use the new multi-input function for the UI
|
| 169 |
inputs=[
|
| 170 |
gr.Textbox(label="Hugging Face Token", lines=1),
|
| 171 |
gr.Textbox(label="Robot ID", lines=1, value="unknown"),
|