VeuReu commited on
Commit
9b265a5
·
verified ·
1 Parent(s): 424c0f7

Update stools_client.py

Browse files
Files changed (1) hide show
  1. stools_client.py +11 -1
stools_client.py CHANGED
@@ -15,4 +15,14 @@ def _get_stools_client():
15
  global _stools_client
16
  if _stools_client is None:
17
  _stools_client = Client("VeuReu/stools")
18
- return _stools_client
 
 
 
 
 
 
 
 
 
 
 
15
  global _stools_client
16
  if _stools_client is None:
17
  _stools_client = Client("VeuReu/stools")
18
+ return _stools_client
19
+
20
+ def get_from_prompt(prompt):
21
+ client = _get_stools_client()
22
+
23
+ result = client.predict(
24
+ prompt=prompt,
25
+ api_name="/generate_out_from_prompt"
26
+ )
27
+
28
+ return result