CognitiveScience commited on
Commit
a5f3dc0
·
1 Parent(s): 66611f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -98,15 +98,15 @@ def ccogsphere(name: str, rate: str, celsci: str):
98
  "Views" : [500, 2000, 540, 300, 200],
99
  "Duration" : [30, 20, 70, 35, 22]})
100
  name1=name.split(":")
101
- mess=name1[1]
102
  try:
103
  client = Client("https://osaaso-mistral-7b-instruct.hf.space/")
104
  result = client.predict(
105
  mess,
106
- 0,
107
- 0,
108
- 0,
109
- 1,
110
  api_name="/chat"
111
  )
112
  nam=result.json() #name1[0]
 
98
  "Views" : [500, 2000, 540, 300, 200],
99
  "Duration" : [30, 20, 70, 35, 22]})
100
  name1=name.split(":")
101
+ mess=name1[1] #temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0
102
  try:
103
  client = Client("https://osaaso-mistral-7b-instruct.hf.space/")
104
  result = client.predict(
105
  mess,
106
+ 0.9,
107
+ 256,
108
+ 0.95,
109
+ 1.0,
110
  api_name="/chat"
111
  )
112
  nam=result.json() #name1[0]