tabi2000222 commited on
Commit
95dd8f0
·
verified ·
1 Parent(s): 97ddf57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
3
  import torch
4
 
5
- MODEL = "meta-llama/Llama-3.2-3B-Instruct"
6
 
7
  tokenizer = AutoTokenizer.from_pretrained(MODEL)
8
  model = AutoModelForCausalLM.from_pretrained(
@@ -34,8 +34,8 @@ def respond(message, history):
34
 
35
  chatbot = gr.ChatInterface(
36
  respond,
37
- title="Free Llama 3.2 Chatbot",
38
- description="Runs completely free — no credits, no HF token needed."
39
  )
40
 
41
  chatbot.launch()
 
2
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
3
  import torch
4
 
5
+ MODEL = "microsoft/Phi-3-mini-4k-instruct"
6
 
7
  tokenizer = AutoTokenizer.from_pretrained(MODEL)
8
  model = AutoModelForCausalLM.from_pretrained(
 
34
 
35
  chatbot = gr.ChatInterface(
36
  respond,
37
+ title="Free Phi-3 Chatbot",
38
+ description="100% free, no token required."
39
  )
40
 
41
  chatbot.launch()