WICKED4950 commited on
Commit
07f8c16
·
verified ·
1 Parent(s): 007bdd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,10 +1,12 @@
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  # Load your model
 
4
  model_name = "WICKED4950/Irisonego5"
5
  tokenizer = AutoTokenizer.from_pretrained(model_name)
6
  model = AutoModelForCausalLM.from_pretrained(model_name)
7
 
 
8
  # Define the chatbot function
9
  def chatbot(input_text):
10
  inputs = tokenizer(input_text, return_tensors="pt")
@@ -17,4 +19,5 @@ iface = gr.Interface(fn=chatbot,
17
  inputs="text",
18
  outputs="text",
19
  title="Your Chatbot")
 
20
  iface.launch()
 
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  # Load your model
4
+ print("Loading the model......")
5
  model_name = "WICKED4950/Irisonego5"
6
  tokenizer = AutoTokenizer.from_pretrained(model_name)
7
  model = AutoModelForCausalLM.from_pretrained(model_name)
8
 
9
+ print("Interface getting done....")
10
  # Define the chatbot function
11
  def chatbot(input_text):
12
  inputs = tokenizer(input_text, return_tensors="pt")
 
19
  inputs="text",
20
  outputs="text",
21
  title="Your Chatbot")
22
+ print("Deploying")
23
  iface.launch()