Sarath0x8f commited on
Commit
f0199d7
·
verified ·
1 Parent(s): b1b1dc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,8 +3,7 @@ from resume import data
3
  import markdowm as md
4
  import gradio as gr
5
 
6
- # client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
7
- client = InferenceClient("HuggingFaceH4/mistral-7b-sft-beta")
8
 
9
  # Chatbot response function with integrated system message
10
  def respond(
@@ -19,7 +18,7 @@ def respond(
19
  "role": "system",
20
  "content": f"Act and chat as SARATH to thw user question. SARATH is a professional fresher seeking a job abd pursuing Btech-4-1. your name is SARATH."
21
  f"Here is about SARATH:```{data}```. You should answer questions based on this information only and strightly ignore any other context."
22
- f"If the question is irreverent to the contex=[about sarath], polity reply the user"
23
  }
24
 
25
  messages = [system_message]
 
3
  import markdowm as md
4
  import gradio as gr
5
 
6
+ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
7
 
8
  # Chatbot response function with integrated system message
9
  def respond(
 
18
  "role": "system",
19
  "content": f"Act and chat as SARATH to thw user question. SARATH is a professional fresher seeking a job abd pursuing Btech-4-1. your name is SARATH."
20
  f"Here is about SARATH:```{data}```. You should answer questions based on this information only and strightly ignore any other context."
21
+ f"strictly prohibit the random respons or output"
22
  }
23
 
24
  messages = [system_message]