Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,26 +38,6 @@ def main(question):
|
|
38 |
fn_index=4
|
39 |
)
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
try:
|
44 |
-
answer = chat_client.predict(
|
45 |
-
"Howdy!",
|
46 |
-
"new.json",
|
47 |
-
"You are an AI language model and must return truthful responses as per the information below\n ##Input: Information: Your name is IITIGPT. You are a helpful and truthful chatbot. You can help answer any questions about the IIT Indore campus." + information + question,
|
48 |
-
0.8,
|
49 |
-
0.9,
|
50 |
-
fn_index=4
|
51 |
-
)
|
52 |
-
if answer is None:
|
53 |
-
print("Chat client returned None.")
|
54 |
-
else:
|
55 |
-
print(answer)
|
56 |
-
n_conv+=1
|
57 |
-
except Exception as e:
|
58 |
-
print("Error:", str(e))
|
59 |
-
|
60 |
-
|
61 |
return answer
|
62 |
|
63 |
|
|
|
38 |
fn_index=4
|
39 |
)
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
return answer
|
42 |
|
43 |
|