Spaces:
Runtime error
Runtime error
AchyuthGamer
commited on
Commit
•
12071d0
1
Parent(s):
7681a13
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,11 @@ from st_audiorec import st_audiorec
|
|
6 |
# Constants
|
7 |
TITLE = "AgriTure"
|
8 |
DESCRIPTION = """
|
9 |
-
|
10 |
This Project demonstrates a model fine-tuned by Achyuth. This Model is named as "AgriTure". This Model helps the farmers and scientists to develop the art of agriculture and farming.
|
11 |
Hope this will be a Successful Project!!!
|
12 |
~Achyuth
|
13 |
-
|
14 |
"""
|
15 |
|
16 |
# Initialize client
|
@@ -35,7 +35,7 @@ def transcribe(wav_path):
|
|
35 |
)
|
36 |
|
37 |
# Prediction function
|
38 |
-
def predict(message, system_prompt='Your name is OpenGPT. You are developed by Achyuth. You need to mostly focus on giving information about future agriculture and advanced farming. Empower yourself farming future with cutting-edge technology and sustainable practices. You need to
|
39 |
with st.status("Starting client"):
|
40 |
client = Client("https://huggingface-projects-llama-2-7b-chat.hf.space/")
|
41 |
st.write("Requesting Audio Transcriber")
|
|
|
6 |
# Constants
|
7 |
TITLE = "AgriTure"
|
8 |
DESCRIPTION = """
|
9 |
+
----
|
10 |
This Project demonstrates a model fine-tuned by Achyuth. This Model is named as "AgriTure". This Model helps the farmers and scientists to develop the art of agriculture and farming.
|
11 |
Hope this will be a Successful Project!!!
|
12 |
~Achyuth
|
13 |
+
----
|
14 |
"""
|
15 |
|
16 |
# Initialize client
|
|
|
35 |
)
|
36 |
|
37 |
# Prediction function
|
38 |
+
def predict(message, system_prompt='Your name is OpenGPT. You are developed by Achyuth. You need to mostly focus on giving information about future agriculture and advanced farming. Empower yourself farming future with cutting-edge technology and sustainable practices. You need to cultivate a greener and more productive. Your developer is studying in The Hyderabad Public School Kadapa.', temperature=0.7, max_new_tokens=4096,Topp=0.5,Repetitionpenalty=1.2):
|
39 |
with st.status("Starting client"):
|
40 |
client = Client("https://huggingface-projects-llama-2-7b-chat.hf.space/")
|
41 |
st.write("Requesting Audio Transcriber")
|