TuringsSolutions commited on
Commit
94f7c96
·
verified ·
1 Parent(s): 63a5233

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,9 +4,9 @@ import numpy as np
4
  import gradio as gr
5
  from transformers import AutoTokenizer, AutoModelForCausalLM
6
 
7
- # Load the Qwen model and tokenizer
8
- tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-0.5B")
9
- model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-0.5B")
10
 
11
  class Agent:
12
  def __init__(self, id, api_key=None):
@@ -125,4 +125,4 @@ iface = gr.Interface(
125
  """
126
  )
127
 
128
- iface.launch()
 
4
  import gradio as gr
5
  from transformers import AutoTokenizer, AutoModelForCausalLM
6
 
7
+ # Load the TinyLlama model and tokenizer
8
+ tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
9
+ model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
10
 
11
  class Agent:
12
  def __init__(self, id, api_key=None):
 
125
  """
126
  )
127
 
128
+ iface.launch()