Whataboutup commited on
Commit
9be77ec
·
verified ·
1 Parent(s): 1a5b279

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,8 +1,13 @@
1
  import gradio as gr
 
2
  from huggingface_hub import InterenceClient
 
3
  client = InterenceClient("microsoft/phi-4")
 
4
  def respond(message, history):
 
5
  messages = [{"role": "system", "content": "You are a chatbot helping students make university options based on their current subjects and interests"}]
 
6
  if history:
7
  messages.extend(history)
8
  messages.append({"role": "user", "content": message})
 
1
  import gradio as gr
2
+ # import random
3
  from huggingface_hub import InterenceClient
4
+
5
  client = InterenceClient("microsoft/phi-4")
6
+
7
  def respond(message, history):
8
+
9
  messages = [{"role": "system", "content": "You are a chatbot helping students make university options based on their current subjects and interests"}]
10
+
11
  if history:
12
  messages.extend(history)
13
  messages.append({"role": "user", "content": message})