Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,20 @@ get_window_url_params = """
|
|
34 |
client = InferenceClient(
|
35 |
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
36 |
)
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
def parse_action(string: str):
|
39 |
print("PARSING:")
|
40 |
print(string)
|
|
|
34 |
client = InferenceClient(
|
35 |
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
36 |
)
|
37 |
+
def predict(text, url_params):
|
38 |
+
load_game=url_params.get('pwd')
|
39 |
+
print (f'load_game::{load_game}')
|
40 |
+
if load_game != None:
|
41 |
+
try:
|
42 |
+
|
43 |
+
return "" + text + ""
|
44 |
+
except Exception as e:
|
45 |
+
print(f"cannot load game. Error::{e}")
|
46 |
+
pass
|
47 |
+
|
48 |
+
else:
|
49 |
+
pass
|
50 |
+
return ["" + text + ""]
|
51 |
def parse_action(string: str):
|
52 |
print("PARSING:")
|
53 |
print(string)
|