Akjava commited on
Commit
4f262bf
·
verified ·
1 Parent(s): 225c649

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -15,6 +15,7 @@ def init():
15
  #raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
16
 
17
  model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
 
18
 
19
  device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
20
  #device = "cuda"
@@ -87,7 +88,9 @@ def call_generate_text(message, history):
87
  js = """
88
  console.log('hello js')
89
  """
90
- demo = gr.ChatInterface(call_generate_text,type="messages")
 
 
91
 
92
  if __name__ == "__main__":
93
  init()
 
15
  #raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
16
 
17
  model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
18
+ model_id = "google/gemma-2b"
19
 
20
  device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
21
  #device = "cuda"
 
88
  js = """
89
  console.log('hello js')
90
  """
91
+ chatbot = gr.Chatbot()
92
+
93
+ demo = gr.ChatInterface(call_generate_text,chatbot=chatbot,type="messages")
94
 
95
  if __name__ == "__main__":
96
  init()