nikhilalgorithma commited on
Commit
c75d3ab
·
verified ·
1 Parent(s): 67cdeff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def bot_streaming(message, history):
42
  try:
43
  if image is None:
44
  # Handle the case where image is None
45
- raise gr.Error("You need to upload an image for DifferentByte Vision to work. Close the error and try again with an Image.")
46
  except NameError:
47
  # Handle the case where 'image' is not defined at all
48
  raise gr.Error("You need to upload an image for Vision to work. Close the error and try again with an Image.")
@@ -88,7 +88,7 @@ chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeh
88
  with gr.Blocks(fill_height=True, ) as demo:
89
  gr.ChatInterface(
90
  fn=bot_streaming,
91
- title="DifferentByte",
92
  examples=[{"text": "Describe the image in details?", "files": ["./robo.jpg"]},
93
  {"text": "Count the number of apples.", "files": ["./setofmark6.png"]},
94
 
 
42
  try:
43
  if image is None:
44
  # Handle the case where image is None
45
+ raise gr.Error("You need to upload an image for Vision to work. Close the error and try again with an Image.")
46
  except NameError:
47
  # Handle the case where 'image' is not defined at all
48
  raise gr.Error("You need to upload an image for Vision to work. Close the error and try again with an Image.")
 
88
  with gr.Blocks(fill_height=True, ) as demo:
89
  gr.ChatInterface(
90
  fn=bot_streaming,
91
+ title="Vision",
92
  examples=[{"text": "Describe the image in details?", "files": ["./robo.jpg"]},
93
  {"text": "Count the number of apples.", "files": ["./setofmark6.png"]},
94