Satyam-Singh commited on
Commit
9287d21
1 Parent(s): fd58409

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
  import os
 
4
  client = InferenceClient("Satyam-Singh/LLaVa-Large-Language-Virtual-Assistant")
5
 
6
  def format_prompt(message, history):
@@ -94,7 +95,7 @@ examples=[["I'm planning a vacation to Japan. Can you suggest a one-week itinera
94
 
95
  gr.ChatInterface(
96
  fn=generate,
97
- chatbot=gr.Chatbot(show_label=False, avatar_images=('1.png', 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
98
  additional_inputs=additional_inputs,
99
  title="LLaVa 56B Large Language Virtual Assiatant",
100
  examples=examples,
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
  import os
4
+ import random
5
  client = InferenceClient("Satyam-Singh/LLaVa-Large-Language-Virtual-Assistant")
6
 
7
  def format_prompt(message, history):
 
95
 
96
  gr.ChatInterface(
97
  fn=generate,
98
+ chatbot=gr.Chatbot(show_label=False, avatar_images=(random.choice(['1.png','2,png','3.png','4.png','5.png']), 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
99
  additional_inputs=additional_inputs,
100
  title="LLaVa 56B Large Language Virtual Assiatant",
101
  examples=examples,