Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,8 @@ logo_path = "static/images/logo-color-v2.png"
|
|
61 |
PLACEHOLDER = f"""
|
62 |
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; margin: 30px">
|
63 |
<img src="/file={logo_path}" style="width: 60%; height: auto; opacity: 80%">
|
64 |
-
<h3>Resim yükleyin ve bir soru sorun
|
|
|
65 |
</div>
|
66 |
"""
|
67 |
|
@@ -80,12 +81,12 @@ demo = gr.ChatInterface(
|
|
80 |
fn=bot_streaming,
|
81 |
chatbot=gr.Chatbot(placeholder=PLACEHOLDER, scale=1),
|
82 |
examples=[
|
83 |
-
{"text": "Detaylı açıkla", "files":["family.jpg"]},
|
84 |
-
{"text": "Görüntüde uçaklar ne yapıyor?", "files":["plane.jpg"]},
|
85 |
-
{"text": "Kısaca açıkla", "files":["dog.jpg"]},
|
86 |
-
{"text": "Tren istasyonu kalabalık mı yoksa boş mu?", "files":["train.jpg"]},
|
87 |
-
{"text": "Resimdeki araba hangi renk?", "files":["car.jpg"]},
|
88 |
-
{"text": "Görüntünün odak noktası nedir?", "files":["mandog.jpg"]}
|
89 |
],
|
90 |
additional_inputs=[max_tokens_item, temperature_item, top_p_item, top_k_item, repeat_penalty_item],
|
91 |
additional_inputs_accordion=parameter_accordion,
|
|
|
61 |
PLACEHOLDER = f"""
|
62 |
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; margin: 30px">
|
63 |
<img src="/file={logo_path}" style="width: 60%; height: auto; opacity: 80%">
|
64 |
+
<h3>Resim yükleyin ve bir soru sorun!</h3>
|
65 |
+
<p>Örnek resim ve soruları kullanabilirsiniz.</p>
|
66 |
</div>
|
67 |
"""
|
68 |
|
|
|
81 |
fn=bot_streaming,
|
82 |
chatbot=gr.Chatbot(placeholder=PLACEHOLDER, scale=1),
|
83 |
examples=[
|
84 |
+
[{"text": "Detaylı açıkla", "files":["./family.jpg"]}],
|
85 |
+
[{"text": "Görüntüde uçaklar ne yapıyor?", "files":["./plane.jpg"]}],
|
86 |
+
[{"text": "Kısaca açıkla", "files":["./dog.jpg"]}],
|
87 |
+
[{"text": "Tren istasyonu kalabalık mı yoksa boş mu?", "files":["./train.jpg"]}],
|
88 |
+
[{"text": "Resimdeki araba hangi renk?", "files":["./car.jpg"]}],
|
89 |
+
[{"text": "Görüntünün odak noktası nedir?", "files":["./mandog.jpg"]}]
|
90 |
],
|
91 |
additional_inputs=[max_tokens_item, temperature_item, top_p_item, top_k_item, repeat_penalty_item],
|
92 |
additional_inputs_accordion=parameter_accordion,
|