suayptalha commited on
Commit
219615a
·
verified ·
1 Parent(s): 942dab0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,7 +17,7 @@ def describe_image(image, user_message):
17
  api_name="/answer_question"
18
  )
19
 
20
- description = result # Moondream2'nin cevabını alıyoruz
21
 
22
  history.append(f"User: {user_message}")
23
  history.append(f"Assistant: {description}")
@@ -51,8 +51,8 @@ def chat_or_image(image, user_message):
51
  demo = gr.Interface(
52
  fn=chat_or_image,
53
  inputs=[
54
- gr.Image(type="filepath", label="Resim Yükle (isteğe bağlı)"),
55
- gr.Textbox(label="Soru Sor ya da Konuş", placeholder="Soru sor...", lines=2)
56
  ],
57
  outputs="text",
58
  )
 
17
  api_name="/answer_question"
18
  )
19
 
20
+ description = result
21
 
22
  history.append(f"User: {user_message}")
23
  history.append(f"Assistant: {description}")
 
51
  demo = gr.Interface(
52
  fn=chat_or_image,
53
  inputs=[
54
+ gr.Image(type="filepath", label="Upload image (Optional)"),
55
+ gr.Textbox(label="Ask anything", placeholder="Ask...", lines=2)
56
  ],
57
  outputs="text",
58
  )