Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def bot_streaming(message, history, max_new_tokens=250):
|
|
43 |
messages.append({"role": "user", "content": [{"type": "text", "text": txt}]})
|
44 |
|
45 |
stream = client.chat.completions.create(
|
46 |
-
model="meta-llama/Llama-
|
47 |
messages=messages,
|
48 |
max_tokens=max_new_tokens,
|
49 |
stream=True,
|
@@ -58,14 +58,7 @@ def bot_streaming(message, history, max_new_tokens=250):
|
|
58 |
|
59 |
demo = gr.ChatInterface(
|
60 |
fn=bot_streaming,
|
61 |
-
title="
|
62 |
-
examples=[
|
63 |
-
[{"text": "Which era does this piece belong to? Give details about the era.", "files":["./examples/rococo.jpg"]}, 200],
|
64 |
-
[{"text": "Where do the droughts happen according to this diagram?", "files":["./examples/weather_events.png"]}, 250],
|
65 |
-
[{"text": "What happens when you take out white cat from this chain?", "files":["./examples/ai2d_test.jpg"]}, 250],
|
66 |
-
[{"text": "Which company was this invoice addressed to?", "files":["./examples/invoice.png"]}, 250],
|
67 |
-
[{"text": "Where to find this monument? Can you give me other recommendations around the area?", "files":["./examples/wat_arun.jpg"]}, 250],
|
68 |
-
],
|
69 |
textbox=gr.MultimodalTextbox(),
|
70 |
additional_inputs=[
|
71 |
gr.Slider(
|
@@ -77,7 +70,7 @@ demo = gr.ChatInterface(
|
|
77 |
)
|
78 |
],
|
79 |
cache_examples=False,
|
80 |
-
description="Try Multimodal Llama by Meta with the Together API in this demo. Upload an image, and start chatting about it
|
81 |
stop_btn="Stop Generation",
|
82 |
fill_height=True,
|
83 |
multimodal=True
|
|
|
43 |
messages.append({"role": "user", "content": [{"type": "text", "text": txt}]})
|
44 |
|
45 |
stream = client.chat.completions.create(
|
46 |
+
model="meta-llama/Llama-Vision-Free",
|
47 |
messages=messages,
|
48 |
max_tokens=max_new_tokens,
|
49 |
stream=True,
|
|
|
58 |
|
59 |
demo = gr.ChatInterface(
|
60 |
fn=bot_streaming,
|
61 |
+
title="Meta Llama 3.2 Vision 11B",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
textbox=gr.MultimodalTextbox(),
|
63 |
additional_inputs=[
|
64 |
gr.Slider(
|
|
|
70 |
)
|
71 |
],
|
72 |
cache_examples=False,
|
73 |
+
description="Try Multimodal Llama by Meta with the Together API in this demo. Upload an image, and start chatting about it",
|
74 |
stop_btn="Stop Generation",
|
75 |
fill_height=True,
|
76 |
multimodal=True
|