Spaces:
Runtime error
Runtime error
traversaal-ai
commited on
Commit
•
cd0054f
1
Parent(s):
73a9e17
Update run.py
Browse files
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 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
{prompt}
|
33 |
-
|
34 |
-
|
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 = ""
|