Comments (3)
Most of the inference functions will simply return a string, so you can assign the result to a variable as follows:
import languagemodels as lm
response = lm.do("What is the capital of France?")
print(response)
from languagemodels.
i had a syntax error when i tried to but now i see there were some other unescaped characters in my query that probably led to that... thanks
`
from languagemodels.
Sounds good. I'm glad that you were able to get this resolved.
from languagemodels.
Related Issues (18)
- Web UI feature request HOT 4
- Support 100 translation languages with m2m-100 HOT 8
- Is there any recommended Chinese models (from huggingface)? HOT 2
- idea: simple assistant
- partially initialized module 'streamlit' has no attribute 'title' HOT 1
- Feature request: Training? HOT 1
- Replacing LaMini for commercial use? HOT 6
- Commercial Models? (Follow Up) HOT 1
- How to make it run offline? HOT 4
- Is it possible to manually load the trained weights? HOT 3
- lm.extract_answer method is failing HOT 10
- Explore adding support for smaller Stable LM 2 models
- AttributeError: module 'languagemodels' has no attribute 'chat' HOT 2
- Killed HOT 3
- Introduce guardrails around long prompts
- New Features: lm.get_URL(), lm_get_MD(), lm_get_PDF, lm_getTXT, etc... HOT 1
- How to choose model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from languagemodels.