Spaces:
Runtime error
Runtime error
misdelivery
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
from gradio import FileData
|
8 |
import time
|
9 |
import spaces
|
10 |
-
ckpt = "
|
11 |
model = MllamaForConditionalGeneration.from_pretrained(ckpt,
|
12 |
torch_dtype=torch.bfloat16).to("cuda")
|
13 |
processor = AutoProcessor.from_pretrained(ckpt)
|
@@ -71,15 +71,15 @@ def bot_streaming(message, history, max_new_tokens=250):
|
|
71 |
|
72 |
|
73 |
demo = gr.ChatInterface(fn=bot_streaming, title="Multimodal Llama", examples=[
|
74 |
-
[{"text": "
|
75 |
200],
|
76 |
-
[{"text": "
|
77 |
250],
|
78 |
-
[{"text": "
|
79 |
250],
|
80 |
-
[{"text": "
|
81 |
250],
|
82 |
-
[{"text": "
|
83 |
250],
|
84 |
],
|
85 |
textbox=gr.MultimodalTextbox(),
|
|
|
7 |
from gradio import FileData
|
8 |
import time
|
9 |
import spaces
|
10 |
+
ckpt = "misdelivery/Llama-3.2-11B-Vision-Instruct-ja-test"
|
11 |
model = MllamaForConditionalGeneration.from_pretrained(ckpt,
|
12 |
torch_dtype=torch.bfloat16).to("cuda")
|
13 |
processor = AutoProcessor.from_pretrained(ckpt)
|
|
|
71 |
|
72 |
|
73 |
demo = gr.ChatInterface(fn=bot_streaming, title="Multimodal Llama", examples=[
|
74 |
+
[{"text": "ใใฎไฝๅใฏใฉใฎๆไปฃใซๅฑใใฆใใพใใ๏ผใใฎๆไปฃใซใคใใฆ่ฉณใใๆใใฆใใ ใใใ", "files":["./examples/rococo.jpg"]},
|
75 |
200],
|
76 |
+
[{"text": "ใใฎๅณใซใใใจใๅนฒใฐใคใฏใฉใใง็บ็ใใพใใ๏ผ", "files":["./examples/weather_events.png"]},
|
77 |
250],
|
78 |
+
[{"text": "ใใฎ้ใใ็ฝใ็ซใๅคใใจใฉใใชใใพใใ๏ผ", "files":["./examples/ai2d_test.jpg"]},
|
79 |
250],
|
80 |
+
[{"text": "่ซๆฑๆฅใใๆๆฅใพใงใฎๆ้ใฏ๏ผ็ญใ็ฐกๆฝใซ็ญใใฆใใ ใใใ", "files":["./examples/invoice.png"]},
|
81 |
250],
|
82 |
+
[{"text": "ใใฎใขใใฅใกใณใใฏใฉใใซใใใพใใ๏ผๅจ่พบๅฐๅใฎใใใใใๆใใฆใใใ ใใพใใ", "files":["./examples/wat_arun.jpg"]},
|
83 |
250],
|
84 |
],
|
85 |
textbox=gr.MultimodalTextbox(),
|