init
Browse files- app.py +4 -6
- requirements.txt +0 -2
app.py
CHANGED
|
@@ -187,8 +187,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 187 |
inputs=prompt_input,
|
| 188 |
)
|
| 189 |
|
| 190 |
-
with gr.Tab("
|
| 191 |
-
gr.Markdown(value="##
|
| 192 |
image_input = gr.Image()
|
| 193 |
with gr.Column():
|
| 194 |
question_input = gr.Textbox(label="Question")
|
|
@@ -198,11 +198,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 198 |
|
| 199 |
with gr.Accordion("Advanced options", open=False):
|
| 200 |
und_seed_input = gr.Number(label="Seed", precision=0, value=42)
|
| 201 |
-
top_p = gr.Slider(minimum=0, maximum=1, value=0.95, step=0.05, label="top_p")
|
| 202 |
-
temperature = gr.Slider(minimum=0, maximum=1, value=0.1, step=0.05, label="temperature")
|
| 203 |
|
| 204 |
examples_inpainting = gr.Examples(
|
| 205 |
-
label="
|
| 206 |
examples=[
|
| 207 |
[
|
| 208 |
"Is the picture taken in winter?",
|
|
@@ -224,7 +222,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 224 |
|
| 225 |
understanding_button.click(
|
| 226 |
multimodal_understanding,
|
| 227 |
-
inputs=[image_input, question_input, und_seed_input
|
| 228 |
outputs=understanding_output
|
| 229 |
)
|
| 230 |
|
|
|
|
| 187 |
inputs=prompt_input,
|
| 188 |
)
|
| 189 |
|
| 190 |
+
with gr.Tab("Camera Understanding"):
|
| 191 |
+
gr.Markdown(value="## Camera Understanding")
|
| 192 |
image_input = gr.Image()
|
| 193 |
with gr.Column():
|
| 194 |
question_input = gr.Textbox(label="Question")
|
|
|
|
| 198 |
|
| 199 |
with gr.Accordion("Advanced options", open=False):
|
| 200 |
und_seed_input = gr.Number(label="Seed", precision=0, value=42)
|
|
|
|
|
|
|
| 201 |
|
| 202 |
examples_inpainting = gr.Examples(
|
| 203 |
+
label="Camera Understanding examples",
|
| 204 |
examples=[
|
| 205 |
[
|
| 206 |
"Is the picture taken in winter?",
|
|
|
|
| 222 |
|
| 223 |
understanding_button.click(
|
| 224 |
multimodal_understanding,
|
| 225 |
+
inputs=[image_input, question_input, und_seed_input],
|
| 226 |
outputs=understanding_output
|
| 227 |
)
|
| 228 |
|
requirements.txt
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
torch
|
| 2 |
accelerate
|
| 3 |
diffusers
|
| 4 |
-
spaces
|
| 5 |
gradio
|
| 6 |
torchvision
|
| 7 |
safetensors
|
|
@@ -11,7 +10,6 @@ mmengine==0.10.7
|
|
| 11 |
numpy==2.2.5
|
| 12 |
pillow==11.2.1
|
| 13 |
scipy==1.15.2
|
| 14 |
-
six==1.17.0
|
| 15 |
timm==0.9.12
|
| 16 |
transformers==4.49.0
|
| 17 |
transformers-stream-generator==0.0.5
|
|
|
|
| 1 |
torch
|
| 2 |
accelerate
|
| 3 |
diffusers
|
|
|
|
| 4 |
gradio
|
| 5 |
torchvision
|
| 6 |
safetensors
|
|
|
|
| 10 |
numpy==2.2.5
|
| 11 |
pillow==11.2.1
|
| 12 |
scipy==1.15.2
|
|
|
|
| 13 |
timm==0.9.12
|
| 14 |
transformers==4.49.0
|
| 15 |
transformers-stream-generator==0.0.5
|