traversaal-ai commited on
Commit
cd0054f
1 Parent(s): 73a9e17

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +8 -9
run.py CHANGED
@@ -24,15 +24,14 @@ def generate_text(prompt):
24
  """Generates text using the Hugging Face Inference API."""
25
  chat_prompt = f"""
26
 
27
- ### Instruction:
28
- You are a chatbot. you are a chatbot. Only respond in Urdu and not in English.
29
- Provide answers with your best knowledge. Don't say you don't know unless you really don't know. Only answer in URDU and not in English
30
-
31
- ### Input:
32
- {prompt}
33
-
34
- ### Response:
35
- ""
36
  """
37
  stream = client.text_generation(chat_prompt, stream=True, details=True, **gen_kwargs)
38
  generated_text = ""
 
24
  """Generates text using the Hugging Face Inference API."""
25
  chat_prompt = f"""
26
 
27
+ You are a chatbot. you are a chatbot. Only respond in Urdu and not in English.
28
+ Provide answers with your best knowledge. Don't say you don't know unless you really don't know. Only answer in URDU and not in English
29
+
30
+ ###
31
+ Instruction:
32
+ {prompt}
33
+ ###
34
+ Response: ""
 
35
  """
36
  stream = client.text_generation(chat_prompt, stream=True, details=True, **gen_kwargs)
37
  generated_text = ""